cache unknown beatsaver maps
All checks were successful
Deploy Backend / deploy (push) Successful in 2m53s
Deploy Website / deploy (push) Successful in 4m46s

This commit is contained in:
Lee
2024-10-17 16:24:10 +01:00
parent 73b7d17597
commit c72230a98d
4 changed files with 57 additions and 43 deletions

View File

@ -30,15 +30,21 @@ export class BeatSaverMap {
* The bsr code for the map.
* @private
*/
@prop({ required: true })
@prop({ required: false })
public bsr!: string;
/**
* The author of the map.
*/
@prop({ required: true, _id: false, type: () => BeatsaverAuthor })
@prop({ required: false, _id: false, type: () => BeatsaverAuthor })
public author!: BeatsaverAuthor;
/**
* True if the map is unknown on beatsaver.
*/
@prop({ required: false })
public unknownMap?: boolean;
/**
* Exposes `id` as a virtual field mapped from `_id`.
*/