mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 17:53:49 -05:00
Add in missed error catching
This commit is contained in:
parent
c137e05bfd
commit
c822bb6ea4
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ module.exports = RedisManager =
|
||||||
multi.lrange keys.pendingUpdates(doc_id:doc_id), 0 , -1
|
multi.lrange keys.pendingUpdates(doc_id:doc_id), 0 , -1
|
||||||
multi.del keys.pendingUpdates(doc_id:doc_id)
|
multi.del keys.pendingUpdates(doc_id:doc_id)
|
||||||
multi.exec (error, replys) ->
|
multi.exec (error, replys) ->
|
||||||
|
return callback(error) if error?
|
||||||
jsonUpdates = replys[0]
|
jsonUpdates = replys[0]
|
||||||
updates = []
|
updates = []
|
||||||
for jsonUpdate in jsonUpdates
|
for jsonUpdate in jsonUpdates
|
||||||
|
|
Loading…
Reference in a new issue