Skip to content

Commit

Permalink
Update job.action.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nolostra authored Oct 13, 2024
1 parent fcf069e commit 86aea0a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/actions/job.action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export const getRecommendedJobs = withServerActionAsyncCatcher<
where: {
category: category,
id: { not: id },
isVerifiedJob: true,
},
orderBy: {
postedAt: 'desc',
Expand Down Expand Up @@ -283,6 +284,9 @@ export const getCityFilters = async () => {
export const getRecentJobs = async () => {
try {
const recentJobs = await prisma.job.findMany({
where: {
isVerifiedJob: true,
},
orderBy: {
postedAt: 'desc',
},
Expand Down

0 comments on commit 86aea0a

Please sign in to comment.