From 60e181ac1fef33c34890a48fcdb1b054a45e03dd Mon Sep 17 00:00:00 2001 From: Robert Jansen Date: Sun, 29 Dec 2024 14:12:58 +0000 Subject: [PATCH] formatting --- src/api/routes/global/extensions/{id}/versions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/routes/global/extensions/{id}/versions.ts b/src/api/routes/global/extensions/{id}/versions.ts index d58d3c9..9730eea 100644 --- a/src/api/routes/global/extensions/{id}/versions.ts +++ b/src/api/routes/global/extensions/{id}/versions.ts @@ -58,9 +58,7 @@ export = new globalAPIRouter.Path('/') const versionStats = await ctr["@"].cache.use(`versions::${extension.id}`, () => ctr["@"].database.select({ version: sql`ext->>'version'`.as('version'), - percentage: sql` - (COUNT(*) * 100.0 / SUM(COUNT(*)) OVER ())::numeric(5,2) - `.mapWith(Number).as('percentage') + percentage: sql`(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER ())::numeric(5,2)`.mapWith(Number).as('percentage') }) .from( ctr["@"].database.select({