function advanceSessionFailure
advanceSessionFailure(
sessionId: string,
from: StoredPaymentFailure,
to: StoredPaymentFailure,
): Promise<void>

Advance a stored terminal outcome from its conservative shape to its final one, once the follow-up money work has finished. Reads the row fresh, so ANY later process — not just the one that stored it — can finish the move. The write is fenced on the exact bytes just read; a racing advance makes this one converge instead of clobbering. A missing or re-reserved row means the idempotency record was pruned mid-move: the durable money records are already correct, so there is nothing left to advance.

Parameters

sessionId: string
from: StoredPaymentFailure
to: StoredPaymentFailure

Return Type

Promise<void>

Usage

import { advanceSessionFailure } from "docs/database.ts";