Skip to content

Commit

Permalink
fix: can update soft deleted records
Browse files Browse the repository at this point in the history
  • Loading branch information
pau-not-paul committed Oct 30, 2024
1 parent 8ef4efa commit 8cd9f8d
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,19 @@ export class GraphqlQueryRunnerService {
>(
'findOne',
{
filter: { id: { eq: args.id } },
filter: {
and: [
{ id: { eq: args.id } },
{
// Hack to include soft deleted records
// Search for "withSoftDeleted" and "applyDeletedAtToBuilder" for more context
or: [
{ deletedAt: { is: 'NULL' } },
{ deletedAt: { is: 'NOT_NULL' } },
],
},
],
},
},
options,
);
Expand Down

0 comments on commit 8cd9f8d

Please sign in to comment.