mirror of
				https://gitlab.com/MrFry/mrfrys-node-server
				synced 2025-04-01 20:24:18 +02:00 
			
		
		
		
	Added sqlite batch command runner to view database, fixed recdata object writing
This commit is contained in:
		| @@ -48,7 +48,11 @@ function ProcessIncomingRequest (recievedData, qdb, infos) { | ||||
|   try { | ||||
|     let towrite = logger.GetDateString() + '\n' | ||||
|     towrite += '------------------------------------------------------------------------------\n' | ||||
|     towrite += recievedData | ||||
|     if (typeof recievedData === 'object') { | ||||
|       towrite += JSON.stringify(recievedData) | ||||
|     } else { | ||||
|       towrite += recievedData | ||||
|     } | ||||
|     towrite += '\n------------------------------------------------------------------------------\n' | ||||
|     utils.AppendToFile(towrite, recDataFile) | ||||
|     logger.DebugLog('recDataFile written', 'actions', 1) | ||||
| @@ -93,7 +97,7 @@ function ProcessIncomingRequest (recievedData, qdb, infos) { | ||||
|     let color = logger.GetColor('green') | ||||
|     let msg = '' | ||||
|     if (allQuestions.length > 0) { | ||||
|       color = logger.GetColor('cyan') | ||||
|       color = logger.GetColor('blue') | ||||
|       msg += `New questions: ${allQuestions.length} ( All: ${allQLength} )` | ||||
|       allQuestions.forEach((q) => { | ||||
|         const sName = classes.SUtils.GetSubjNameWithoutYear(d.subj) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user