From c2f4cfff40fdc34fe96bf0e6704665feb7c87239 Mon Sep 17 00:00:00 2001 From: bendevnull Date: Sat, 3 Aug 2024 03:47:20 +0000 Subject: [PATCH] fix: welp --- src/lib/riitag/neo/std/Covers.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/lib/riitag/neo/std/Covers.ts b/src/lib/riitag/neo/std/Covers.ts index 20cd8a3..27e9e7c 100644 --- a/src/lib/riitag/neo/std/Covers.ts +++ b/src/lib/riitag/neo/std/Covers.ts @@ -192,6 +192,20 @@ export default class Covers extends ModuleBase { * @returns */ async getAllUserCovers (user: user): Promise { + await prisma.playlog.deleteMany({ + where: { + game: { + console: CONSOLE.THREEDS + } + } + }) + + await prisma.playlog.deleteMany({ + where: { + game: null + } + }) + const playlog = await prisma.playlog.findMany({ where: { user: { @@ -219,20 +233,6 @@ export default class Covers extends ModuleBase { return [] } - await prisma.playlog.deleteMany({ - where: { - game: { - console: CONSOLE.THREEDS - } - } - }) - - await prisma.playlog.deleteMany({ - where: { - game: null - } - }) - for (const entry of playlog) { if (!entry.game || entry.game.console === CONSOLE.THREEDS || entry.game.console === CONSOLE.SWITCH) { await prisma.playlog.delete({