Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-08-20 00:53:46 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b6fefa6771130ac7547dda83aedc699ed5698558
b6fefa67
1 parent
324075d9
feat. exception handle
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
server/src/api/bottle/bottle.ctrl.js
server/src/api/bottle/bottle.ctrl.js
View file @
b6fefa6
...
...
@@ -156,13 +156,15 @@ exports.getBottleInfo = async(ctx) => {
ctx
.
status
=
200
;
ctx
.
body
=
{
bottle
,
takeMedicineHist
,
};
}
else
{
ctx
.
status
=
404
;
ctx
.
status
=
200
;
ctx
.
body
=
{
error
:
'정보가 등록되지 않은 약병'
bottle
,
takeMedicineHist
:
[],
}
}
...
...
Please
register
or
login
to post a comment