Showing
1 changed file
with
8 additions
and
0 deletions
| ... | @@ -317,6 +317,14 @@ exports.validateDoctorLicense = async ctx => { | ... | @@ -317,6 +317,14 @@ exports.validateDoctorLicense = async ctx => { |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | const { validateDoctorLicense } = ctx.request.body; | 319 | const { validateDoctorLicense } = ctx.request.body; |
| 320 | + if(!validateDoctorLicense) { | ||
| 321 | + ctx.status = 404; | ||
| 322 | + ctx.body = { | ||
| 323 | + error : '유효한 자격번호를 입력해주세요', | ||
| 324 | + }; | ||
| 325 | + return; | ||
| 326 | + } | ||
| 327 | + | ||
| 320 | const doctorInfo = await DoctorInfo.findOne({ 'info.validateDoctorLicense' : validateDoctorLicense }); | 328 | const doctorInfo = await DoctorInfo.findOne({ 'info.validateDoctorLicense' : validateDoctorLicense }); |
| 321 | 329 | ||
| 322 | ctx.status = 200; | 330 | ctx.status = 200; | ... | ... |
-
Please register or login to post a comment