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": {