-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[50기 최현수 - ADD : Api/수입지출여부목록조회 리뷰 반영 및 testcode] #4
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "api/\uC218\uC785\uC9C0\uCD9C\uC5EC\uBD80\uBAA9\uB85D\uC870\uD68C"
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마찬가지로 테스트 코드 작성해 주세요
src/models/flowTypeDao.js
Outdated
const getFlowTypes = async () => { | ||
return await appDataSource.query( | ||
` | ||
SELECT id, status as 'option' | ||
FROM flow_type | ||
` | ||
) | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const getFlowTypes = async () => { | |
return await appDataSource.query( | |
` | |
SELECT id, status as 'option' | |
FROM flow_type | |
` | |
) | |
} | |
const getFlowTypes = async () => { | |
return await appDataSource.query( | |
` | |
SELECT id, status as 'option' | |
FROM flow_type | |
` | |
) | |
} |
src/services/flowTypeService.js
Outdated
|
||
const getFlowTypes = async () => { | ||
const flowTypes = await flowTypeDao.getFlowTypes(); | ||
if (flowTypes.length===0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (flowTypes.length===0) { | |
if (flowTypes.length === 0) { |
src/services/flowTypeService.js
Outdated
else { | ||
return flowTypes; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else { | |
return flowTypes; | |
} | |
} | |
return flowTypes; | |
} |
else 없어도 될 것 같습니다 :)
수정 완료했습니다! |
controller {error: error.message || 'INTERNAL ..} 형식으로 수정했습니다.
1. 본 PR이 우리 팀의 웹 서비스 제품성에 어떠한 기여를 하였고,
사용자에게 어떠한 기대효과를 전달하는지 작성해주세요.
내 PR이 제품 내 어떠한 기능적인 배경/전후맥락 가운데 개발되었나요?
사용자가 수입, 지출 2가지 목록을 확인하고 선택할 수 있게 합니다.
내 PR이 Merge 됨으로써 유저에게 전달되는 편익/기대효과는 무엇일까요?
사용자는 수입, 지출 2가지 중에서 원하는 유형을 고를 수 있습니다. 선택함으로 인해 서버로 원하는 데이터를 보낼 수 있습니다.
2. 이 브랜치에서 어떤 내용을 개발했는지 큰 제목과 상세 내역을 적어주세요.
3. 개발한 화면을 캡쳐해서 첨부 해 주세요.
4. 이 브랜치에서 개발하면서 느꼇던 개발 성장포인트를 적어주세요.