accounting_automation: этап 1 бухгалтерской автоматизации (инвойсы из почты, категоризация, ручной разбор, MCP), интервальные задания scheduler, миграции 033/034/038
All checks were successful
ci / test (push) Successful in 40s
ci / deploy (push) Successful in 2m41s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 08:05:28 +03:00
parent 12e331efe9
commit b422309148
62 changed files with 4278 additions and 148 deletions

View File

@@ -39,7 +39,7 @@ export function buildApi(deps: SchedulerApiDeps): FastifyInstance {
const last = (
await deps.pool.query("select scheduled_minute, status, noticed_at, message from sched_run where job_name = $1 order by scheduled_minute desc limit 1", [j.name])
).rows[0] ?? null;
jobs.push({ name: j.name, at: j.at, days: j.days, lastDue: lastDue(j, now, deps.tz, nonWork)?.toISOString() ?? null, lastRun: last });
jobs.push({ name: j.name, at: j.at ?? null, everyMinutes: j.everyMinutes ?? null, days: j.days, lastDue: lastDue(j, now, deps.tz, nonWork)?.toISOString() ?? null, lastRun: last });
}
return { jobs };
});