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

This commit is contained in:
2026-02-03 22:17:49 +07:00
parent 7815c5354f
commit d4a1643a25
+2 -2
View File
@@ -295,8 +295,8 @@ async function runScript(req, res) {
}
const client = createRosClient(creds);
// /rest/system/script/run — запуск скрипта по имени (number или .id)
await client.command('system/script/run', { number: script });
// /rest/system/script/run — запуск скрипта по имени (.id принимает имя скрипта)
await client.command('system/script/run', { '.id': script });
return sendOk(res, { ok: true, message: `Скрипт ${script} запущен` });
} catch (error) {