Browse Source

Update score that is displayed to the user

pull/41/head
Abheek Dhawan 3 years ago
parent
commit
38b0b0d3a9
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 2
      src/helpers/db.ts

2
src/helpers/db.ts

@ -31,7 +31,7 @@ export async function updateScore(isCorrect : boolean, score : number, authorId
doc.save(); doc.save();
} }
return `Great job! Your score is now ${score}.`; return `Great job! Your score is now ${score + 4}.`;
} }
} }

Loading…
Cancel
Save