Skip to content

Commit

Permalink
filter tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarsson committed Sep 8, 2023
1 parent 0e0a1ac commit cba56f8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,5 @@ export const mapRestrictions = (
restrictions?.createdByMe === false && {
'advert.createdBy': { $ne: user.id },
},
restrictions?.isArchived
? { 'meta.archived': { $eq: true } }
: regularAdvertsFilter
restrictions?.isArchived ? { 'meta.archived': true } : regularAdvertsFilter
)

0 comments on commit cba56f8

Please sign in to comment.