Skip to content

Commit 4f85350

Browse files
committed
Merge branch 'main' into version/support-rosu-pp-js-2
2 parents eb34174 + 7f0b3d0 commit 4f85350

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

server/src/core/managers/storage/storage.manager.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,12 @@ export class StorageManager {
128128
ctx: SearchBeatmapsetsOptions,
129129
result: Beatmapset[],
130130
): Promise<void> {
131-
for (const beatmapset of result) {
132-
await this.insertBeatmapset(beatmapset, {
133-
beatmapSetId: beatmapset.id,
134-
});
135-
}
131+
// TODO: This is disabled for now. While mino sends full beatmapsets, bancho doesn't. Saving such beatmapsets is wrong and will corrupt database. I don't have time to implement partial beatmapset saving for now, so just skip saving search results until I do it.
132+
// for (const beatmapset of result) {
133+
// await this.insertBeatmapset(beatmapset, {
134+
// beatmapSetId: beatmapset.id,
135+
// });
136+
// }
136137

137138
await this.cacheService.insertSearchResult(ctx, result);
138139
}

0 commit comments

Comments
 (0)