Skip to content

Commit 9c22dd4

Browse files
committed
Don't delete nothing
1 parent bf7a206 commit 9c22dd4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

api/routes/update.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,14 @@ async function statelyUpdate(
323323
const instanceIds = (group as TagCleanupUpdate[])
324324
.flatMap((u) => u.payload)
325325
.filter(isValidItemId);
326-
await deleteItemAnnotationListStately(
327-
txn,
328-
platformMembershipId!,
329-
destinyVersion,
330-
instanceIds,
331-
);
326+
if (instanceIds.length) {
327+
await deleteItemAnnotationListStately(
328+
txn,
329+
platformMembershipId!,
330+
destinyVersion,
331+
instanceIds,
332+
);
333+
}
332334
break;
333335
}
334336

0 commit comments

Comments
 (0)