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

@ -15,8 +15,11 @@ export default class BeatSaverService {
if (toObject.notFound) { if (toObject.notFound) {
return undefined; return undefined;
} }
// Return the map if it doesn't need to be refreshed
if (!toObject.shouldRefresh()) {
return toObject; return toObject;
} }
}
const token = await beatsaverService.lookupMap(hash); const token = await beatsaverService.lookupMap(hash);
const uploader = token?.uploader; const uploader = token?.uploader;

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