Mark quiz-lead merge logic with decision D-BIZ-017

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 14:38:12 +05:00
co-authored by Claude Opus 5.5
parent 767a0d5a6e
commit 42518b2137
+1
View File
@@ -185,6 +185,7 @@ export type ExistingPlan =
}; };
}; };
// РЕШЕНИЕ D-BIZ-017: список — через subscribers/lists add, атрибуты — PUT с текущими списками без preconfirm
export function planExisting(sub: ListmonkSubscriber, lead: QuizLead, listId: number, now: Date): ExistingPlan { export function planExisting(sub: ListmonkSubscriber, lead: QuizLead, listId: number, now: Date): ExistingPlan {
if (sub.status === "blocklisted") return { kind: "skip", reason: "blocklisted" }; if (sub.status === "blocklisted") return { kind: "skip", reason: "blocklisted" };
const current = sub.lists.map((l) => l.id); const current = sub.lists.map((l) => l.id);