fix(mikrotikConfigRoutes): update script execution command to use the correct REST API endpoint for running scripts
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 2m3s

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