From 0f68b2b69e779cb4b54fce0f88548541855e82fe Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 23 Oct 2024 15:37:21 +0100 Subject: [PATCH] maybe fix? --- projects/backend/src/service/beatsaver.service.ts | 5 ++++- projects/common/tsconfig.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/backend/src/service/beatsaver.service.ts b/projects/backend/src/service/beatsaver.service.ts index 5d5435a..e415f41 100644 --- a/projects/backend/src/service/beatsaver.service.ts +++ b/projects/backend/src/service/beatsaver.service.ts @@ -15,7 +15,10 @@ export default class BeatSaverService { if (toObject.notFound) { return undefined; } - return toObject; + // Return the map if it doesn't need to be refreshed + if (!toObject.shouldRefresh()) { + return toObject; + } } const token = await beatsaverService.lookupMap(hash); diff --git a/projects/common/tsconfig.json b/projects/common/tsconfig.json index 8d0b47e..ecc0ef8 100644 --- a/projects/common/tsconfig.json +++ b/projects/common/tsconfig.json @@ -9,6 +9,7 @@ "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, + "isolatedModules": true, "strict": true, "baseUrl": "./", "paths": {