Skip to content

Commit

Permalink
fix: Restore
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-smartive committed Jul 2, 2024
1 parent c728881 commit 727ae6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ const restore = async (model: EntityModel, { where }: { where: any }, ctx: FullC
if (
!relatedEntity.deleted ||
!relatedEntity.deletedAt ||
anyDateToLuxon(relatedEntity.deletedAt, ctx.timeZone).equals(anyDateToLuxon(entity.deletedAt, ctx.timeZone))
!anyDateToLuxon(relatedEntity.deletedAt, ctx.timeZone).equals(anyDateToLuxon(entity.deletedAt, ctx.timeZone))
) {
return;
}
Expand Down

0 comments on commit 727ae6c

Please sign in to comment.