mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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,7 +162,8 @@ module.exports = RedisManager =
|
|||
return callback(error)
|
||||
|
||||
jsonOps = appliedOps.map (op) -> JSON.stringify op
|
||||
if jsonOps.indexOf("\u0000") != -1
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue