[resumes][feat] preserve filter count when unticked

pull/460/head
Keane Chan 2 years ago
parent 84710209f3
commit 27fb277a98
No known key found for this signature in database
GPG Key ID: 32718398E1E9F87C

@ -180,7 +180,6 @@ export const resumesResumeUserRouter = createProtectedRouter()
experience: { in: experienceFilters },
isResolved: isUnreviewed ? false : {},
location: { in: locationFilters },
role: { in: roleFilters },
stars: {
some: {
userId,
@ -209,7 +208,6 @@ export const resumesResumeUserRouter = createProtectedRouter()
},
by: ['experience'],
where: {
experience: { in: experienceFilters },
isResolved: isUnreviewed ? false : {},
location: { in: locationFilters },
role: { in: roleFilters },
@ -242,7 +240,6 @@ export const resumesResumeUserRouter = createProtectedRouter()
where: {
experience: { in: experienceFilters },
isResolved: isUnreviewed ? false : {},
location: { in: locationFilters },
role: { in: roleFilters },
stars: {
some: {
@ -378,7 +375,6 @@ export const resumesResumeUserRouter = createProtectedRouter()
experience: { in: experienceFilters },
isResolved: isUnreviewed ? false : {},
location: { in: locationFilters },
role: { in: roleFilters },
title: { contains: searchValue, mode: 'insensitive' },
userId,
},
@ -403,7 +399,6 @@ export const resumesResumeUserRouter = createProtectedRouter()
},
by: ['experience'],
where: {
experience: { in: experienceFilters },
isResolved: isUnreviewed ? false : {},
location: { in: locationFilters },
role: { in: roleFilters },
@ -432,7 +427,6 @@ export const resumesResumeUserRouter = createProtectedRouter()
where: {
experience: { in: experienceFilters },
isResolved: isUnreviewed ? false : {},
location: { in: locationFilters },
role: { in: roleFilters },
title: { contains: searchValue, mode: 'insensitive' },
userId,

Loading…
Cancel
Save