feat: agregar formato de fecha y hora en la notificación de actualización de perfil
This commit is contained in:
@@ -63,6 +63,7 @@ import ClientsList from "../Clients/Clients";
|
||||
import RepeatsList from "../Repeats/Repeats";
|
||||
import { OAuth2Client } from "google-auth-library";
|
||||
import SchedulesDisabledList from "../SchedulesDisabled/SchedulesDisabled";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
const cleanEmail = (email: string): string => {
|
||||
return email.toLowerCase().trim();
|
||||
@@ -1087,10 +1088,18 @@ class UsersManager implements IUsersManager {
|
||||
|
||||
await this.users.update(data);
|
||||
|
||||
const fecha = dayjs().format("DD/MM/YYYY");
|
||||
const hora = dayjs().format("HH:mm");
|
||||
|
||||
await NotificationsManager.sendEmail({
|
||||
email: cleanEmail(sessionUser.email),
|
||||
subject: "TurnosXpress :: Usuario actualizado",
|
||||
message: `Hola ${sessionUser.firstName}, has actualizado tu perfil con éxito`,
|
||||
templateId: "6aa948e050f4bd20460f00a5",
|
||||
context: {
|
||||
username: sessionUser.firstName,
|
||||
fecha,
|
||||
hora,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user