mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
refactor: move plugin hook methods to plugin.hooks.*
This commit is contained in:
@@ -179,7 +179,7 @@ async function validateSession(socket) {
|
||||
if (!sessionData) {
|
||||
throw new Error('[[error:invalid-session]]');
|
||||
}
|
||||
const result = await plugins.fireHook('static:sockets.validateSession', {
|
||||
const result = await plugins.hooks.fire('static:sockets.validateSession', {
|
||||
req: req,
|
||||
socket: socket,
|
||||
session: sessionData,
|
||||
|
||||
Reference in New Issue
Block a user