Saving data fix round 2

This commit is contained in:
mrfry 2020-10-07 14:35:36 +02:00
parent 43734fb8f7
commit 1cf16dbafd
3 changed files with 8 additions and 30 deletions

View file

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