Skip to content

Commit c3e5e65

Browse files
committed
docs(account-deletion): describe the in-transaction delta read accurately
1 parent 3aa8b9f commit c3e5e65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/sim/lib/users/account-deletion.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ export async function deleteUserAccount(userId: string): Promise<AccountDeletion
884884
* workspace and user deletes cascade their rows away; delivered after commit.
885885
*/
886886
stoppedRuns = await stopLiveRunsTx(tx, { userId })
887-
/** Inserts only: the exact keys were read before the transaction took its locks. */
887+
/** Queues the pre-read keys plus a delta of the account's rows written since, read under the account lock. */
888888
await enqueueAccountStorageCleanupInTx(tx, {
889889
userId,
890890
workspaceIds: doomedWorkspaceIds,

0 commit comments

Comments
 (0)