Skip to content

Commit

Permalink
fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Aug 5, 2023
1 parent 66fe3c2 commit 4c4420c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/server/backend/bancho.py/server/score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ export class ScoreProvider implements Base<bigint, Id> {
const banchoPyMode = toBanchoPyMode(opt.mode, opt.ruleset)
const score = await this.db.score.findFirstOrThrow({
where: {
user: opt.user,
user: {
priv: {
gt: 2,
},
...opt.user,
},
beatmap: opt.beatmap,
mode: banchoPyMode,
},
Expand All @@ -97,7 +102,12 @@ export class ScoreProvider implements Base<bigint, Id> {
const banchoPyMode = toBanchoPyMode(opt.mode, opt.ruleset)
const scores = await this.db.score.findMany({
where: {
user: opt.user,
user: {
priv: {
gt: 2,
},
...opt.user,
},
beatmap: opt.beatmap,
mode: banchoPyMode,
},
Expand Down

0 comments on commit 4c4420c

Please sign in to comment.