mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-10-01 21:24:51 +02:00
Fix appointment denial incl. email
This commit is contained in:
@@ -199,7 +199,7 @@ export class AppointmentService {
|
||||
row.id,
|
||||
row.channelId,
|
||||
clientEmail,
|
||||
clientLanguage || "de",
|
||||
clientLanguage || "en",
|
||||
false,
|
||||
).catch((error) => {
|
||||
log.error("Failed to send appointment confirmation email", {
|
||||
@@ -249,11 +249,11 @@ export class AppointmentService {
|
||||
|
||||
// Send rejection email to client if email is provided (async, don't wait)
|
||||
if (clientEmail) {
|
||||
this.sendAppointmentNotification(
|
||||
await this.sendAppointmentNotification(
|
||||
row.id,
|
||||
row.channelId,
|
||||
clientEmail,
|
||||
clientLanguage || "de",
|
||||
clientLanguage || "en",
|
||||
false,
|
||||
).catch((error) => {
|
||||
log.error("Failed to send appointment rejection email", {
|
||||
|
||||
@@ -167,7 +167,7 @@ export const denyAppointment = async (opts: {
|
||||
};
|
||||
}
|
||||
const res = await fetch(`/api/tenants/${opts.tenant}/appointments/${opts.appointment}/deny`, {
|
||||
method: "PUT",
|
||||
method: "POST",
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user