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({