From 0f645115ca5f39f379b44db00f0af6183cd2b3a3 Mon Sep 17 00:00:00 2001 From: Paribesh Nepal Date: Fri, 25 Oct 2024 00:31:06 +0530 Subject: [PATCH] fix: minor changes --- .../20241021191938_somfadf/migration.sql | 18 ------------------ src/actions/job.action.ts | 6 ++++++ 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 prisma/migrations/20241021191938_somfadf/migration.sql diff --git a/prisma/migrations/20241021191938_somfadf/migration.sql b/prisma/migrations/20241021191938_somfadf/migration.sql deleted file mode 100644 index 21f638de..00000000 --- a/prisma/migrations/20241021191938_somfadf/migration.sql +++ /dev/null @@ -1,18 +0,0 @@ --- CreateEnum -CREATE TYPE "ProjectStack" AS ENUM ('GO', 'PYTHON', 'MERN', 'NEXTJS', 'AI_GPT_APIS', 'SPRINGBOOT', 'OTHERS'); - --- DropForeignKey -ALTER TABLE "Experience" DROP CONSTRAINT "Experience_userId_fkey"; - --- DropForeignKey -ALTER TABLE "Project" DROP CONSTRAINT "Project_userId_fkey"; - --- AlterTable -ALTER TABLE "Project" ADD COLUMN "projectThumbnail" TEXT, -ADD COLUMN "stack" "ProjectStack" NOT NULL DEFAULT 'OTHERS'; - --- AddForeignKey -ALTER TABLE "Experience" ADD CONSTRAINT "Experience_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; - --- AddForeignKey -ALTER TABLE "Project" ADD CONSTRAINT "Project_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; diff --git a/src/actions/job.action.ts b/src/actions/job.action.ts index 659edb3e..b3b15ade 100644 --- a/src/actions/job.action.ts +++ b/src/actions/job.action.ts @@ -156,6 +156,7 @@ export const getAllJobs = withSession< skills: true, address: true, workMode: true, + expired: true, category: true, minSalary: true, maxSalary: true, @@ -219,6 +220,7 @@ export const getRecommendedJobs = withServerActionAsyncCatcher< maxSalary: true, postedAt: true, skills: true, + expired: true, isVerifiedJob: true, companyLogo: true, }, @@ -252,6 +254,7 @@ export const getRecommendedJobs = withServerActionAsyncCatcher< companyLogo: true, minExperience: true, maxExperience: true, + expired: true, isVerifiedJob: true, category: true, }, @@ -294,6 +297,7 @@ export const getJobById = withServerActionAsyncCatcher< minExperience: true, maxExperience: true, skills: true, + expired: true, address: true, workMode: true, hasSalaryRange: true, @@ -352,6 +356,7 @@ export const getRecentJobs = async () => { minExperience: true, maxExperience: true, skills: true, + expired: true, postedAt: true, companyLogo: true, type: true, @@ -601,6 +606,7 @@ export async function GetBookmarkByUserId() { minSalary: true, maxSalary: true, postedAt: true, + expired: true, companyLogo: true, }, },