mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Added make scripts, some new tests, install link now points to greasyfork
This commit is contained in:
@@ -60,7 +60,12 @@ function ProcessIncomingRequest (recievedData, qdb, infos) {
|
||||
|
||||
try {
|
||||
// recievedData: { version: "", id: "", subj: "" quiz: {} }
|
||||
let d = JSON.parse(recievedData)
|
||||
let d = recievedData
|
||||
// FIXME: if is for backwards compatibility, remove this sometime in the future
|
||||
if (typeof d !== 'object') {
|
||||
d = JSON.parse(recievedData)
|
||||
}
|
||||
|
||||
logger.DebugLog('recievedData JSON parsed', 'actions', 1)
|
||||
let allQLength = d.quiz.length
|
||||
let allQuestions = []
|
||||
|
Reference in New Issue
Block a user