mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
fix bug, jsonOps is array not string
This commit is contained in:
@@ -162,10 +162,11 @@ module.exports = RedisManager =
|
||||
return callback(error)
|
||||
|
||||
jsonOps = appliedOps.map (op) -> JSON.stringify op
|
||||
if jsonOps.indexOf("\u0000") != -1
|
||||
error = new Error("null bytes found in jsonOps")
|
||||
logger.error err: error, doc_id: doc_id, jsonOps: jsonOps, error.message
|
||||
return callback(error)
|
||||
for op in jsonOps
|
||||
if op.indexOf("\u0000") != -1
|
||||
error = new Error("null bytes found in jsonOps")
|
||||
logger.error err: error, doc_id: doc_id, jsonOps: jsonOps, error.message
|
||||
return callback(error)
|
||||
|
||||
newDocLines = JSON.stringify(docLines)
|
||||
if newDocLines.indexOf("\u0000") != -1
|
||||
|
||||
Reference in New Issue
Block a user