꧁岡
Size: a a a
꧁岡
И
М
АБ
М
М
꧁岡
АБ
М
М
АБ
try {
/* const patient = await Patient.findById(patientId).populate('appointments').exec() */
const patient = await Patient.find(patientId).sort({ date: -1 })
res.json({
status: 'success',
data: patient,
})
} catch (e) {
return res.status(404).json({
success: false,
message: 'PATIENT_NOT_FOUND',
})
}
М
꧁岡
try {
/* const patient = await Patient.findById(patientId).populate('appointments').exec() */
const patient = await Patient.find(patientId).sort({ date: -1 })
res.json({
status: 'success',
data: patient,
})
} catch (e) {
return res.status(404).json({
success: false,
message: 'PATIENT_NOT_FOUND',
})
}
АБ
꧁岡
АБ
꧁岡