maybe fix?
Some checks failed
Deploy Backend / docker (ubuntu-latest) (push) Failing after 32s
Deploy Website / docker (ubuntu-latest) (push) Failing after 32s

This commit is contained in:
Lee 2024-10-23 15:37:21 +01:00
parent 33b931b5f1
commit 0f68b2b69e
2 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -9,6 +9,7 @@
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"isolatedModules": true,
"strict": true,
"baseUrl": "./",
"paths": {