[Router] leaveDoc: pass the doc_id into the error-context

This commit is contained in:
Jakob Ackermann 2020-08-20 14:05:12 +01:00
parent fd88819eec
commit f935b1881a

View file

@ -274,7 +274,9 @@ module.exports = Router = {
WebsocketController.leaveDoc(client, doc_id, function (err, ...args) { WebsocketController.leaveDoc(client, doc_id, function (err, ...args) {
if (err) { if (err) {
Router._handleError(callback, err, client, 'leaveDoc') Router._handleError(callback, err, client, 'leaveDoc', {
doc_id
})
} else { } else {
callback(null, ...args) callback(null, ...args)
} }