Saving data fix

This commit is contained in:
mrfry 2020-10-07 14:25:25 +02:00
parent 8a47792bde
commit 43734fb8f7
2 changed files with 10 additions and 3 deletions

View file

@ -728,9 +728,13 @@ function GetApp() {
user
)
.then((result) => {
const { newDb, newQuestions } = result
if (newQuestions > 0) {
data = newDb
}
res.json({
success: result !== -1,
newQuestions: result,
success: newQuestions !== -1,
newQuestions: newQuestions,
})
})
})