mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[Router] leaveDoc: pass the doc_id into the error-context
This commit is contained in:
parent
fd88819eec
commit
f935b1881a
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ module.exports = Router = {
|
|||
|
||||
WebsocketController.leaveDoc(client, doc_id, function (err, ...args) {
|
||||
if (err) {
|
||||
Router._handleError(callback, err, client, 'leaveDoc')
|
||||
Router._handleError(callback, err, client, 'leaveDoc', {
|
||||
doc_id
|
||||
})
|
||||
} else {
|
||||
callback(null, ...args)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue