Skip to content

Commit

Permalink
fix: Linting sucks
Browse files Browse the repository at this point in the history
  • Loading branch information
bendevnull committed Aug 3, 2024
1 parent 0626677 commit fd1d382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/riitag/neo/std/Covers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,20 +226,20 @@ export default class Covers extends ModuleBase {
}
}
})

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({
if (!entry.game || entry.game.console === CONSOLE.THREEDS || entry.game.console === CONSOLE.SWITCH) {
await prisma.playlog.delete({
where: {
playlog_id: entry.playlog_id
}
})
})
}
}

Expand Down

0 comments on commit fd1d382

Please sign in to comment.