diff --git a/lib/RolesModule.js b/lib/RolesModule.js index a0bbd5b..c8963ed 100644 --- a/lib/RolesModule.js +++ b/lib/RolesModule.js @@ -16,8 +16,8 @@ class RolesModule extends AbstractApiModule { } catch (e) { this.log('error', e) } - const [localauth, users] = await this.app.waitForModule('auth-local', 'users') - localauth.registerHook.tap(this.onUpdateRoles.bind(this)) + const [authlocal, users] = await this.app.waitForModule('auth-local', 'users') + authlocal.registerHook.tap(this.onUpdateRoles.bind(this)) users.requestHook.tap(this.onUpdateRoles.bind(this)) }