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:
parent
0c5ab62a5c
commit
8ef64e1a54
10 changed files with 277 additions and 12 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue