Skip to content

Commit

Permalink
more fixy
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Oct 17, 2024
1 parent 26fb245 commit 5997616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/functions/src/replicache/pull1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,11 @@ export const handler = ApiHandler(
? {
stateEvent: inArray(stateEventTable.updateID, updates),
stateUpdate: inArray(stateUpdateTable.id, updates),
stateResource: inArray(stateResourceTable.updateID, updates),
}
: {}),
stateResource: deletedStages.length
? notInArray(stateResourceTable.stageID, deletedStages)
: undefined,
run: runs.length ? inArray(runTable.id, runs) : undefined,
} satisfies {
[key in keyof typeof TABLES]?: SQLWrapper;
Expand Down

0 comments on commit 5997616

Please sign in to comment.