From 9d4e3d39f4d18b5a7735d1666e464cf2bfb60c52 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 19 Dec 2025 20:32:26 +0100 Subject: Dont use promises for dummy endpoints --- src/api/routes/users/@me/applications/#application_id/entitlements.ts | 2 +- src/api/routes/users/@me/billing/country-code.ts | 2 +- src/api/routes/users/@me/billing/location-info.ts | 2 +- src/api/routes/users/@me/billing/subscriptions.ts | 2 +- src/api/routes/users/@me/collectibles-marketing.ts | 2 +- src/api/routes/users/@me/collectibles-purchases.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/api/routes/users') diff --git a/src/api/routes/users/@me/applications/#application_id/entitlements.ts b/src/api/routes/users/@me/applications/#application_id/entitlements.ts index e8e6f657..6641df6a 100644 --- a/src/api/routes/users/@me/applications/#application_id/entitlements.ts +++ b/src/api/routes/users/@me/applications/#application_id/entitlements.ts @@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO res.json([]).status(200); }); diff --git a/src/api/routes/users/@me/billing/country-code.ts b/src/api/routes/users/@me/billing/country-code.ts index 8bddafc3..dd2be6d4 100644 --- a/src/api/routes/users/@me/billing/country-code.ts +++ b/src/api/routes/users/@me/billing/country-code.ts @@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO res.json({ country_code: "US" }).status(200); }); diff --git a/src/api/routes/users/@me/billing/location-info.ts b/src/api/routes/users/@me/billing/location-info.ts index 918ea913..5a57c0ea 100644 --- a/src/api/routes/users/@me/billing/location-info.ts +++ b/src/api/routes/users/@me/billing/location-info.ts @@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO // TODO: subdivision_code (optional) res.json({ country_code: "US" }).status(200); diff --git a/src/api/routes/users/@me/billing/subscriptions.ts b/src/api/routes/users/@me/billing/subscriptions.ts index e8e6f657..6641df6a 100644 --- a/src/api/routes/users/@me/billing/subscriptions.ts +++ b/src/api/routes/users/@me/billing/subscriptions.ts @@ -21,7 +21,7 @@ import { route } from "@spacebar/api"; const router: Router = Router({ mergeParams: true }); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/", route({}), (req: Request, res: Response) => { //TODO res.json([]).status(200); }); diff --git a/src/api/routes/users/@me/collectibles-marketing.ts b/src/api/routes/users/@me/collectibles-marketing.ts index a043a146..f7d24623 100644 --- a/src/api/routes/users/@me/collectibles-marketing.ts +++ b/src/api/routes/users/@me/collectibles-marketing.ts @@ -39,7 +39,7 @@ router.get( }, }, }), - async (req: Request, res: Response) => { + (req: Request, res: Response) => { res.send({ marketings: {}, } as CollectiblesMarketingResponse); diff --git a/src/api/routes/users/@me/collectibles-purchases.ts b/src/api/routes/users/@me/collectibles-purchases.ts index 1e6a08d0..26f23ed6 100644 --- a/src/api/routes/users/@me/collectibles-purchases.ts +++ b/src/api/routes/users/@me/collectibles-purchases.ts @@ -38,7 +38,7 @@ router.get( }, }, }), - async (req: Request, res: Response) => { + (req: Request, res: Response) => { res.send([]); }, ); -- cgit 1.5.1