cli: use model scope for hook calls
Make the scope consistent with other callbacks Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -122,7 +122,7 @@ function run_hook(name, ...args)
|
||||
return;
|
||||
|
||||
for (let hook in hooks)
|
||||
call(hook, this, {}, ...args);
|
||||
call(hook, this, this.scope, ...args);
|
||||
}
|
||||
|
||||
function init()
|
||||
|
||||
Reference in New Issue
Block a user