Skip to content

Commit

Permalink
chore: cleans duplicative logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Apr 17, 2023
1 parent cfadaf7 commit 086feaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongoose/sanitizeQueryValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const sanitizeQueryValue = ({ ctx, field, path, operator, val, hasCustomI
formattedValue = Number(val);
}

if (['relationship', 'upload'].includes(field.type) && val === 'null') {
if (['relationship', 'upload'].includes(field.type)) {
if (val === 'null') {
formattedValue = null;
}
Expand Down

0 comments on commit 086feaf

Please sign in to comment.