Skip to content

Commit 86484c7

Browse files
committed
fix: job keywords
1 parent d1ab402 commit 86484c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/dev/traffic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import axios from "axios";
33
import { config } from "../config";
44

55
const BASE_URL = `http://${config.HOST}:${config.PORT}/v1`;
6-
const ITERATIONS = 100;
6+
const ITERATIONS = 20_000;
77
const DELAY_MS = 100;
88

99
interface Session {

Diff for: src/modules/job/job.controller.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ export async function createJobHandler(
2929
request: FastifyRequest<{ Body: z.infer<typeof crateJobSchema.body> }>,
3030
reply: FastifyReply
3131
) {
32-
const { title, description, status } = request.body;
32+
const { title, description, status, keywords, salary } = request.body;
3333

3434
try {
3535
const result = await createJob(
3636
{
3737
title,
3838
description,
3939
status,
40+
keywords,
41+
salary,
4042
userId: request.user!.id,
4143
},
4244
request.db
@@ -72,8 +74,6 @@ export async function getJobsHandler(
7274

7375
const result = await getJobs({ search, limit, cursor }, request.db);
7476

75-
console.log("res", JSON.stringify(result, null, 2));
76-
7777
return reply.status(200).send(result);
7878
} catch (error) {
7979
const e = error as PostgresErrorType;

0 commit comments

Comments
 (0)