Skip to content

Commit

Permalink
fix: job keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
tomanagle committed Dec 30, 2024
1 parent d1ab402 commit 86484c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dev/traffic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/modules/job/job.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ export async function createJobHandler(
request: FastifyRequest<{ Body: z.infer<typeof crateJobSchema.body> }>,
reply: FastifyReply
) {
const { title, description, status } = request.body;
const { title, description, status, keywords, salary } = request.body;

try {
const result = await createJob(
{
title,
description,
status,
keywords,
salary,
userId: request.user!.id,
},
request.db
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 86484c7

Please sign in to comment.