From 86484c7fcd3d5cfd10c3a09e6d15b52ee256d21e Mon Sep 17 00:00:00 2001 From: Tom Nagle Date: Tue, 31 Dec 2024 07:58:14 +1000 Subject: [PATCH] fix: job keywords --- src/dev/traffic.ts | 2 +- src/modules/job/job.controller.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dev/traffic.ts b/src/dev/traffic.ts index 044e146..fafdf35 100644 --- a/src/dev/traffic.ts +++ b/src/dev/traffic.ts @@ -3,7 +3,7 @@ import axios from "axios"; import { config } from "../config"; const BASE_URL = `http://${config.HOST}:${config.PORT}/v1`; -const ITERATIONS = 100; +const ITERATIONS = 20_000; const DELAY_MS = 100; interface Session { diff --git a/src/modules/job/job.controller.ts b/src/modules/job/job.controller.ts index c12284c..27062d0 100644 --- a/src/modules/job/job.controller.ts +++ b/src/modules/job/job.controller.ts @@ -29,7 +29,7 @@ export async function createJobHandler( request: FastifyRequest<{ Body: z.infer }>, reply: FastifyReply ) { - const { title, description, status } = request.body; + const { title, description, status, keywords, salary } = request.body; try { const result = await createJob( @@ -37,6 +37,8 @@ export async function createJobHandler( title, description, status, + keywords, + salary, userId: request.user!.id, }, request.db @@ -72,8 +74,6 @@ export async function getJobsHandler( const result = await getJobs({ search, limit, cursor }, request.db); - console.log("res", JSON.stringify(result, null, 2)); - return reply.status(200).send(result); } catch (error) { const e = error as PostgresErrorType;