fix(mikrotikConfigRoutes): correct script execution command to use '.id' for script name in API call
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m54s
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m54s
This commit is contained in:
@@ -295,8 +295,8 @@ async function runScript(req, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const client = createRosClient(creds);
|
const client = createRosClient(creds);
|
||||||
// /rest/system/script/run — запуск скрипта по имени (number или .id)
|
// /rest/system/script/run — запуск скрипта по имени (.id принимает имя скрипта)
|
||||||
await client.command('system/script/run', { number: script });
|
await client.command('system/script/run', { '.id': script });
|
||||||
|
|
||||||
return sendOk(res, { ok: true, message: `Скрипт ${script} запущен` });
|
return sendOk(res, { ok: true, message: `Скрипт ${script} запущен` });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user