Fix appointment denial incl. email

This commit is contained in:
Karl Ludwig Weise
2026-02-10 12:20:39 +01:00
parent 168e2d5a6c
commit c1af53dc5b
2 changed files with 4 additions and 4 deletions
@@ -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),
});