Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -33,7 +33,7 @@ exports.getDoctorsInfo = async ctx => { | ... | @@ -33,7 +33,7 @@ exports.getDoctorsInfo = async ctx => { |
33 | return; | 33 | return; |
34 | } | 34 | } |
35 | 35 | ||
36 | - const doctorInfo = await DoctorInfo.find({ | 36 | + const doctorInfo = await DoctorInfo.findOne({ |
37 | doctorId : userId, | 37 | doctorId : userId, |
38 | useYn : 'Y' | 38 | useYn : 'Y' |
39 | }); | 39 | }); |
... | @@ -47,7 +47,7 @@ exports.getDoctorsInfo = async ctx => { | ... | @@ -47,7 +47,7 @@ exports.getDoctorsInfo = async ctx => { |
47 | } | 47 | } |
48 | 48 | ||
49 | ctx.status = 200; | 49 | ctx.status = 200; |
50 | - ctx.body = doctorInfo; | 50 | + ctx.body = doctorInfo.info; |
51 | 51 | ||
52 | }; | 52 | }; |
53 | 53 | ... | ... |
-
Please register or login to post a comment