diff options
author | Emma [it/its]@Rory& <root@rory.gay> | 2023-12-11 01:12:54 +0100 |
---|---|---|
committer | Emma [it/its]@Rory& <root@rory.gay> | 2023-12-11 01:12:54 +0100 |
commit | 0a8ceb9e6349284e75545a01ffad608b020f78e2 (patch) | |
tree | 17a9163f963eddabf9168b0b630096b2f7535b64 /src/api/routes/oauth2/applications/@me.ts | |
parent | Prettier: use editorconfig (diff) | |
download | server-dev/emma-refactors.tar.xz |
Actually run prettier dev/emma-refactors
Diffstat (limited to 'src/api/routes/oauth2/applications/@me.ts')
-rw-r--r-- | src/api/routes/oauth2/applications/@me.ts | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/api/routes/oauth2/applications/@me.ts b/src/api/routes/oauth2/applications/@me.ts index 0c23bdb1..3c404d25 100644 --- a/src/api/routes/oauth2/applications/@me.ts +++ b/src/api/routes/oauth2/applications/@me.ts @@ -17,11 +17,7 @@ */ import { route } from "@spacebar/api"; -import { - Application, - DiscordApiErrors, - PublicUserProjection, -} from "@spacebar/util"; +import { Application, DiscordApiErrors, PublicUserProjection } from "@spacebar/util"; import { Request, Response, Router } from "express"; const router: Router = Router(); @@ -40,9 +36,7 @@ router.get( where: { id: req.params.id }, relations: ["bot", "owner"], select: { - owner: Object.fromEntries( - PublicUserProjection.map((x) => [x, true]), - ), + owner: Object.fromEntries(PublicUserProjection.map((x) => [x, true])), }, }); @@ -51,9 +45,8 @@ router.get( res.json({ ...app, owner: app.owner.toPublicUser(), - install_params: - app.install_params !== null ? app.install_params : undefined, + install_params: app.install_params !== null ? app.install_params : undefined, }); - }, + } ); export default router; |