mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
added queueKey to error info when trying to push to redis
This commit is contained in:
@@ -132,18 +132,15 @@ const DocumentUpdaterManager = {
|
||||
error = new OError('error pushing update into redis').withCause(error)
|
||||
return callback(error)
|
||||
}
|
||||
rclient.rpush(
|
||||
DocumentUpdaterManager._getPendingUpdateListKey(),
|
||||
doc_key,
|
||||
function (error) {
|
||||
if (error) {
|
||||
error = new OError('error pushing doc_id into redis').withCause(
|
||||
error
|
||||
)
|
||||
}
|
||||
callback(error)
|
||||
const queueKey = DocumentUpdaterManager._getPendingUpdateListKey()
|
||||
rclient.rpush(queueKey, doc_key, function (error) {
|
||||
if (error) {
|
||||
error = new OError('error pushing doc_id into redis')
|
||||
.withInfo({ queueKey })
|
||||
.withCause(error)
|
||||
}
|
||||
)
|
||||
callback(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user