fix(alerts): защитить ручной повтор очереди проверкой версии

This commit is contained in:
Denozordec committed 2026-10-03 19:14:27 +07:00
1 parent 89c31289bd
commit 7d0608bbce
16 files changed
+86 -17

No files matched your search

+1
View File
@@ -607,6 +607,7 @@ export const alertOutbox = pgTable("alert_outbox", {
dedupeKey: text("dedupe_key").notNull(),
channel: text("channel", { enum: ["telegram"] }).notNull().default("telegram"),
status: text("status", { enum: ["pending", "processing", "unknown", "sent", "failed"] }).notNull().default("pending"),
resolutionVersion: integer("resolution_version").notNull().default(0),
retryCount: integer("retry_count").notNull().default(0),
maxRetries: integer("max_retries").notNull().default(3),
nextAttemptAt: ts("next_attempt_at").notNull(),