Skip to content

Commit

Permalink
check on patient details
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald-pro committed Apr 30, 2024
1 parent 0c165ee commit bc4e78b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions routes/processes/nishauri_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -3006,7 +3006,7 @@ router.get(

const promises = [];

try {
// try {
for (const program of userPrograms) {
const { program_type, program_identifier } = program;

Expand Down Expand Up @@ -3097,12 +3097,12 @@ router.get(
await Promise.all(promises);

return res.status(200).json(finalJson);
} catch (error) {
return res.status(500).json({
success: false,
msg: "Error occurred while fetching patient data"
});
}
// } catch (error) {
// return res.status(500).json({
// success: false,
// msg: "Error occurred while fetching patient data"
// });
// }
}
);

Expand Down

0 comments on commit bc4e78b

Please sign in to comment.