show booking date in mails

This commit is contained in:
Thomas Ruoff
2020-11-07 00:38:29 +01:00
parent c223b05011
commit eeb8beba0a
3 changed files with 36 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import { Booking } from '../db/booking'
import { getBaseURL } from '../helpers/url'
import { daysFormatFrontend } from './date'
const SENDGRID_API_KEY = process.env.SENDGRID_API_KEY
const ADMIN_EMAIL = process.env.ADMIN_EMAIL
@@ -31,7 +32,9 @@ Tel. 0151/212 253 62
function getReceivedBookingBookerText(booking: Booking) {
return `Hallo liebe/r ${booking.booker.name},
Vielen Dank für Deine Buchung. Nach Prüfung bestätigen wir die Buchung bald per E-Mail!
Vielen Dank für Deine Buchungsanfrage zum ${daysFormatFrontend(booking.days)}!
Nach Prüfung bestätigen wir die Buchung bald per E-Mail!
Du kannst sie jederzeit unter
@@ -46,7 +49,9 @@ ${footer}
function getBookingConfirmedText(booking: Booking) {
return `Hallo liebe/r ${booking.booker.name},
deine Buchung ist bestätigt!
deine Buchunganfrage zum ${daysFormatFrontend(
booking.days
)} bestätigen wir gerne!
Bitte melde dich spätestens 7 Tage vor dem Buchungstermin per E-Mail oder Telefon
um eine Schlüsselübergabe zu vereinbaren.
@@ -60,7 +65,9 @@ ${footer}
function getBookingRejectedText(booking: Booking) {
return `Hallo liebe/r ${booking.booker.name},
es tut uns leid aber deine Buchung konnte leider nicht bestätigt werden.
es tut uns leid aber deine Buchungsanfrage zum ${daysFormatFrontend(
booking.days
)} konnten wir leider nicht bestätigen.
Willst du das Bussle an einem anderen Termin buchen? Dann stelle bitte nochmal
eine Buchungsanfrage auf ${getBaseURL()}.