Skip to content

Commit

Permalink
Don't delete nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Dec 16, 2024
1 parent bf7a206 commit 9c22dd4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions api/routes/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,14 @@ async function statelyUpdate(
const instanceIds = (group as TagCleanupUpdate[])
.flatMap((u) => u.payload)
.filter(isValidItemId);
await deleteItemAnnotationListStately(
txn,
platformMembershipId!,
destinyVersion,
instanceIds,
);
if (instanceIds.length) {
await deleteItemAnnotationListStately(
txn,
platformMembershipId!,
destinyVersion,
instanceIds,
);
}
break;
}

Expand Down

0 comments on commit 9c22dd4

Please sign in to comment.