feat(NetworkMapScheduler): add next scheduled run time to settings response and update frontend to display next run time
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 1m36s

This commit is contained in:
denozord committed 2026-02-18 14:11:27 +07:00
1 parent 1fda3a5f4e
commit 8cc3575902
4 files changed
+33 -26

No files matched your search

+2 -1
View File
@@ -32,7 +32,8 @@ async function getNetworkMapSchedulerSettings(req, res) {
try {
const ui = await readUiSettings();
const settings = networkMapScheduler.getSettingsFromUiSettings(ui);
return res.json(settings);
const nextRunAt = networkMapScheduler.getNextRunAt(settings);
return res.json({ ...settings, nextRunAt: nextRunAt || undefined });
} catch (e) {
console.error('[scheduler] getSettings', e);
return sendError(res, 500, 'Не удалось прочитать настройки', 'E_SCHEDULER');