Skip to content

Commit

Permalink
weekly scoreboard bug fix part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-adriansens authored Jan 31, 2024
1 parent a6e0c3b commit 3ac8cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = {
let userInfo = await module.exports.getScores(user);

// add user
if (!userInfo.length) {
if (!userInfo[0].length) {
success = await db.run("INSERT INTO Scores (username, highscore, ip) VALUES (?, ?, ?);", [user, newScore, ip]);
await db.run("INSERT INTO WeeklyScores (username, highscore, ip) VALUES (?, ?, ?);", [user, newScore, ip]);

Expand Down

0 comments on commit 3ac8cbd

Please sign in to comment.