Skip to content

Commit

Permalink
Merge pull request #54 from kau-qj/dictionary
Browse files Browse the repository at this point in the history
jobname 변수 -> jobName으로 수정
  • Loading branch information
Kimtae00 authored Dec 4, 2023
2 parents a83b6d2 + f6cf26f commit 10dd232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/config/swagger/jobdictionary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ paths:
required:
- jobname
properties:
jobname:
jobName:
type: string
description: 추가 또는 수정할 관심 직무의 이름
example: 데이터 사이언티스트
Expand Down
6 changes: 3 additions & 3 deletions src/controller/jobguideController.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ exports.addOrUpdateInterestJob = async (req, res) => {
// console.log(userId); // Ex) ktg
if (!userId) return res.send(response(baseResponse.TOKEN_VERIFICATION_FAILURE));

const jobname = req.body.jobname
const jobName = req.body.jobName
// console.log(jobname); // Ex) 데이터 사이언티스트
if (!jobname) return res.send(response(baseResponse.JOBGUIDE_JOBNAME_EMPTY));
if (!jobName) return res.send(response(baseResponse.JOBGUIDE_JOBNAME_EMPTY));

const result = await jobguideService.addOrUpdateInterestJob(userId, jobname);
const result = await jobguideService.addOrUpdateInterestJob(userId, jobName);
if (!result) return res.send(baseResponse.JOBGUIDE_ADDINTERESTJOB_FAILED);

return res.send(response(baseResponse.SUCCESS, result));
Expand Down
4 changes: 2 additions & 2 deletions src/service/jobguideService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const { pool } = require('../config/database.js');
// Service : Create, Update, Delete 비즈니스 로직 처리

// 관심 직무 추가 또는 업데이트
exports.addOrUpdateInterestJob = async function(userId, jobname){
exports.addOrUpdateInterestJob = async function(userId, jobName){
const connection = await pool.getConnection(async (conn) => conn);
const interestJobInfo = await jobguideDao.addOrUpdateInterestJob(connection, userId, jobname);
const interestJobInfo = await jobguideDao.addOrUpdateInterestJob(connection, userId, jobName);
connection.release();
return interestJobInfo;
}
Expand Down

0 comments on commit 10dd232

Please sign in to comment.