Skip to content

Commit

Permalink
fix(refreshLeaderboard): Remove upsert from storing (pancakeswap#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
chef-huan authored Dec 22, 2021
1 parent fc2a0ab commit ecb7b85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/cron/refreshLeaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ const updateLeaderboard = async (users: User[]) => {
team: key,
updated_at: new Date(),
},
{ strict: false, upsert: true }
{ strict: false, upsert: false }
)
.exec();
} catch (e) {
console.log(e);
throw e;
}
}
Expand Down

0 comments on commit ecb7b85

Please sign in to comment.