fix(tasks): preserve nullable flow patch clears

This commit is contained in:
Vincent Koc 2026-03-31 17:24:47 +09:00
parent d15d7d0962
commit 72d1725fcf
1 changed files with 13 additions and 10 deletions

View File

@ -39,16 +39,19 @@ function resolveFlowBlockedSummary(
}
type FlowRecordPatch = Partial<
Pick<
FlowRecord,
| "status"
| "notifyPolicy"
| "goal"
| "currentStep"
| "blockedTaskId"
| "blockedSummary"
| "updatedAt"
| "endedAt"
Omit<
Pick<
FlowRecord,
| "status"
| "notifyPolicy"
| "goal"
| "currentStep"
| "blockedTaskId"
| "blockedSummary"
| "updatedAt"
| "endedAt"
>,
"currentStep" | "blockedTaskId" | "blockedSummary" | "endedAt"
>
> & {
currentStep?: string | null;