mirror of
				https://gitlab.com/MrFry/mrfrys-node-server
				synced 2025-04-01 20:24:18 +02:00 
			
		
		
		
	Saving data fix
This commit is contained in:
		| @@ -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, | ||||
|         }) | ||||
|       }) | ||||
|   }) | ||||
|   | ||||
| @@ -165,7 +165,10 @@ function ProcessIncomingRequest(recievedData, qdb, infos, dryRun, user) { | ||||
|           logger.DebugLog(allQuestions, 'actions', 2) | ||||
|  | ||||
|           logger.DebugLog('ProcessIncomingRequest done', 'actions', 1) | ||||
|           resolve(allQLength.length) | ||||
|           resolve({ | ||||
|             newQuestions: allQLength.length, | ||||
|             newDb: qdb, | ||||
|           }) | ||||
|         } catch (error) { | ||||
|           console.log(error) | ||||
|           logger.Log( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user