mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Saving data fix round 2
This commit is contained in:
parent
43734fb8f7
commit
1cf16dbafd
3 changed files with 8 additions and 30 deletions
|
@ -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,
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue