mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 00:31:36 +00:00
fix bug, jsonOps is array not string
This commit is contained in:
parent
54ad45c870
commit
a3947c587f
1 changed files with 5 additions and 4 deletions
|
@ -162,10 +162,11 @@ module.exports = RedisManager =
|
||||||
return callback(error)
|
return callback(error)
|
||||||
|
|
||||||
jsonOps = appliedOps.map (op) -> JSON.stringify op
|
jsonOps = appliedOps.map (op) -> JSON.stringify op
|
||||||
if jsonOps.indexOf("\u0000") != -1
|
for op in jsonOps
|
||||||
error = new Error("null bytes found in jsonOps")
|
if op.indexOf("\u0000") != -1
|
||||||
logger.error err: error, doc_id: doc_id, jsonOps: jsonOps, error.message
|
error = new Error("null bytes found in jsonOps")
|
||||||
return callback(error)
|
logger.error err: error, doc_id: doc_id, jsonOps: jsonOps, error.message
|
||||||
|
return callback(error)
|
||||||
|
|
||||||
newDocLines = JSON.stringify(docLines)
|
newDocLines = JSON.stringify(docLines)
|
||||||
if newDocLines.indexOf("\u0000") != -1
|
if newDocLines.indexOf("\u0000") != -1
|
||||||
|
|
Loading…
Reference in a new issue