Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Dec 29, 2024
1 parent 4b32319 commit 60e181a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/routes/global/extensions/{id}/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export = new globalAPIRouter.Path('/')

const versionStats = await ctr["@"].cache.use(`versions::${extension.id}`, () => ctr["@"].database.select({
version: sql<string>`ext->>'version'`.as('version'),
percentage: sql<number>`
(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER ())::numeric(5,2)
`.mapWith(Number).as('percentage')
percentage: sql<number>`(COUNT(*) * 100.0 / SUM(COUNT(*)) OVER ())::numeric(5,2)`.mapWith(Number).as('percentage')
})
.from(
ctr["@"].database.select({
Expand Down

0 comments on commit 60e181a

Please sign in to comment.