mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 21:53:13 +08:00
made sure the db error will actually show
This commit is contained in:
parent
656af17815
commit
2d4ef194ef
1 changed files with 5 additions and 3 deletions
|
@ -11,9 +11,11 @@ function db_testCompleted(obj) {
|
|||
if (user) {
|
||||
uid = user.uid;
|
||||
}
|
||||
db.collection('results').add(obj).catch(e =>{
|
||||
showNotification("Error saving result! Please contact Miodec on Discord.");
|
||||
})
|
||||
try{
|
||||
db.collection('results').add(obj);
|
||||
}catch(e){
|
||||
showNotification("Error saving result! Please contact Miodec on Discord.",5000);
|
||||
}
|
||||
}
|
||||
|
||||
async function db_getUserResults() {
|
||||
|
|
Loading…
Reference in a new issue