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-09-19 00:04:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
465a19f7d94efadb8d1628f4aa87163467bffec2
465a19f7
1 parent
1a1d4003
fix. error exception
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
server/src/api/manage/manage.ctrl.js
server/src/api/manage/manage.ctrl.js
View file @
465a19f
...
...
@@ -317,6 +317,14 @@ exports.validateDoctorLicense = async ctx => {
}
const
{
validateDoctorLicense
}
=
ctx
.
request
.
body
;
if
(
!
validateDoctorLicense
)
{
ctx
.
status
=
404
;
ctx
.
body
=
{
error
:
'유효한 자격번호를 입력해주세요'
,
};
return
;
}
const
doctorInfo
=
await
DoctorInfo
.
findOne
({
'info.validateDoctorLicense'
:
validateDoctorLicense
});
ctx
.
status
=
200
;
...
...
Please
register
or
login
to post a comment