Fixing regex for finding date and logging error on waiting list failure
This commit is contained in:
parent
99466bd1f4
commit
0bff63ba6f
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ const EMAIL_SUBJECT_REGEX = new RegExp(
|
||||||
)
|
)
|
||||||
const EMAIL_ADDRESS = 'Squash City <no-reply@i-reservations.nl>'
|
const EMAIL_ADDRESS = 'Squash City <no-reply@i-reservations.nl>'
|
||||||
const EMAIL_DATE_REGEX = new RegExp(
|
const EMAIL_DATE_REGEX = new RegExp(
|
||||||
/^Datum: ([0-9]{1,2}-[0-9]{1,2}-[0,9]{4})$/im,
|
/^Datum: ([0-9]{1,2}-[0-9]{1,2}-[0-9]{4})$/im,
|
||||||
)
|
)
|
||||||
const EMAIL_START_TIME_REGEX = new RegExp(
|
const EMAIL_START_TIME_REGEX = new RegExp(
|
||||||
/^Begintijd: ([0-9]{1,2}:[0-9]{1,2})$/im,
|
/^Begintijd: ([0-9]{1,2}:[0-9]{1,2})$/im,
|
||||||
|
|
@ -60,7 +60,7 @@ export class WaitingListService {
|
||||||
.sendWaitListEmailReceivedNotification(email.subject)
|
.sendWaitListEmailReceivedNotification(email.subject)
|
||||||
.catch(this.loggerService.error),
|
.catch(this.loggerService.error),
|
||||||
this.emailProvider.readEmails([email]).catch(this.loggerService.error),
|
this.emailProvider.readEmails([email]).catch(this.loggerService.error),
|
||||||
this.handleWaitingListEmail(email),
|
this.handleWaitingListEmail(email).catch(this.loggerService.error),
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue