From 55b9f0e4efdfd83fccb72600693a6a451022795b Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 23 Oct 2024 16:19:29 +0100 Subject: [PATCH] fix swagger --- projects/backend/src/index.ts | 8 ++++++++ projects/backend/src/service/beatsaver.service.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/projects/backend/src/index.ts b/projects/backend/src/index.ts index e2ce126..575d649 100644 --- a/projects/backend/src/index.ts +++ b/projects/backend/src/index.ts @@ -174,6 +174,14 @@ app.use( version: await getAppVersion(), }, }, + scalarConfig: { + servers: [ + { + url: "https://ssr.fascinated.cc/api", + description: "Production server", + }, + ], + }, }) ); diff --git a/projects/backend/src/service/beatsaver.service.ts b/projects/backend/src/service/beatsaver.service.ts index de7cbbf..fac7023 100644 --- a/projects/backend/src/service/beatsaver.service.ts +++ b/projects/backend/src/service/beatsaver.service.ts @@ -38,7 +38,7 @@ export default class BeatSaverService { const newMapData: BeatSaverMap = token && uploader && metadata ? { - _id: hash, + _id: hash, // todo: change this to an incrementing id bsr: token.id, name: token.name, description: token.description,