Skip to content

Commit 64854da

Browse files
committed
fix lint
1 parent 9f92ff5 commit 64854da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ddr/user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export class UserService {
5252
data.notes.push([0, 0, 0, 0, 0]);
5353
}
5454

55-
let [playCount, rank, clearKind, score, unk] = data.notes[record.notetype];
55+
let [playCount, rank, clearKind, score] = data.notes[record.notetype];
5656

5757
playCount++;
5858
rank = Math.max(record.rank, rank);
5959
clearKind = Math.max(record.clearkind, clearKind);
6060
score = Math.max(record.score, score);
6161

62-
data.notes[record.notetype] = [playCount, rank, clearKind, score, unk];
62+
data.notes[record.notetype] = [playCount, rank, clearKind, score, 0];
6363

6464
await this.playerMusicCol.updateOne({ player, mcode: record.mcode }, { $set: data }, { upsert: true });
6565
}

0 commit comments

Comments
 (0)