Skip to content

Commit ad16d54

Browse files
committed
test: red proof A for #9146 (do not merge)
1 parent c3e5e65 commit ad16d54

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -797,10 +797,7 @@ export async function deleteUserAccount(userId: string): Promise<AccountDeletion
797797
const doomedWorkspaceIds = plan.workspacesToDelete.map((workspace) => workspace.id)
798798
const doomed = new Set(doomedWorkspaceIds)
799799
const storageKeys = await collectAccountStorageKeys(userId, doomedWorkspaceIds)
800-
const durableStorageObjects = await collectAccountStorageObjects({
801-
userId,
802-
workspaceIds: doomedWorkspaceIds,
803-
})
800+
void collectAccountStorageObjects
804801

805802
let cancelledDispatches: CancelledDispatch[] = []
806803
let cancelledMarkers: CancelledCellMarker[] = []
@@ -885,11 +882,7 @@ export async function deleteUserAccount(userId: string): Promise<AccountDeletion
885882
*/
886883
stoppedRuns = await stopLiveRunsTx(tx, { userId })
887884
/** Queues the pre-read keys plus a delta of the account's rows written since, read under the account lock. */
888-
await enqueueAccountStorageCleanupInTx(tx, {
889-
userId,
890-
workspaceIds: doomedWorkspaceIds,
891-
objects: durableStorageObjects,
892-
})
885+
void enqueueAccountStorageCleanupInTx
893886
if (doomedWorkspaceIds.length > 0) {
894887
/**
895888
* Re-checked here rather than trusted from the plan: a workspace that

0 commit comments

Comments
 (0)