fix(email): preserve draft send identity
CI and Deploy / test (pull_request) Successful in 4m15s
CI and Deploy / deploy (pull_request) Has been skipped

Persist and export each draft's idempotency UUID so refresh and edits cannot create a fresh delivery identity. Add reversible provider-specific migration SQL.
This commit is contained in:
cesnimda
2026-08-10 10:11:04 +02:00
parent 108440d361
commit 80b5532c2f
12 changed files with 2778 additions and 4 deletions
+2
View File
@@ -11,6 +11,7 @@ public sealed class EmailDraft
public string Subject { get; set; } = string.Empty;
public string BodyText { get; set; } = string.Empty;
public string? ThreadId { get; set; }
public string ClientRequestId { get; set; } = string.Empty;
public long Revision { get; set; } = 1;
public DateTime CreatedAtUtc { get; set; }
public DateTime UpdatedAtUtc { get; set; }
@@ -24,6 +25,7 @@ public sealed record EmailDraftExport(
string Subject,
string BodyText,
string? ThreadId,
string ClientRequestId,
long Revision,
DateTime CreatedAtUtc,
DateTime UpdatedAtUtc);