docs: correct name for callback function

pull/4521/head
John McLear 2020-11-26 10:10:43 +00:00 committed by GitHub
parent ba7d80fa57
commit 83e28ec031
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ exports.handleMessage = (hookName, {message, socket}, callback) => {
const user = socket.client.request.session.user || {}; const user = socket.client.request.session.user || {};
if (user.name) message.data.userInfo.name = user.name; if (user.name) message.data.userInfo.name = user.name;
} }
return cb(); return callback();
}; };
``` ```