Skip to content

Commit

Permalink
fix: Add resource id check
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Dec 4, 2024
1 parent 9b3da7a commit 00e4a68
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const getEventsForResourceDeleted = async (
where: and(
SCHEMA.resourceMatchesMetadata(db, systemFilter),
isNull(SCHEMA.resource.deletedAt),
eq(SCHEMA.resource.id, resource.id),
),
});
if (matchedResource == null) return [];
Expand Down

0 comments on commit 00e4a68

Please sign in to comment.