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:
Felix Fietkau
2025-02-26 10:35:02 +01:00
parent bc078b833a
commit 7953376400
2 changed files with 4 additions and 4 deletions

View File

@@ -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()