Skip to content

Commit

Permalink
Correccion en cancelacion
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo3829l committed Apr 11, 2024
1 parent 7703dcf commit abbd613
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions arquitecture/Controllers/schedule.service.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,7 @@ export const cancelService = async (req, res) => {
await sendEmail(
process.env.USER,
'Servicio cancelado',
catch (error) {
console.log("Error");
console.log(error);
return res.json({
success: false,
msg: req.t('schedule.cancelService.error'),
});
}
}; template,
template,
'Servicio cancelado'
)

Expand All @@ -484,7 +476,15 @@ export const cancelService = async (req, res) => {
msg: req.t('schedule.cancelService.candeled')
});

} catch (error) {
console.log("Error");
console.log(error);
return res.json({
success: false,
msg: req.t('schedule.cancelService.error'),
});
}
};


export const rescheduleService = async (req, res) => {
Expand Down

0 comments on commit abbd613

Please sign in to comment.