fix: Logic fix in Salesforce no-show (#17516)

This commit is contained in:
Joe Au-Yeung
2024-11-06 16:49:31 +00:00
committed by GitHub
parent edecc7e60e
commit 8f92c9b884
@@ -533,7 +533,7 @@ export default class SalesforceCRMService implements CRM {
const fields = salesforceEntity.fields;
const noShowField = fields.find((field) => field.name === sendNoShowAttendeeDataField);
if (!noShowField || (!noShowField.type as unknown as string) !== "boolean") {
if (!noShowField || (noShowField.type as unknown as string) !== "boolean") {
this.log.warn(
`No show field on Salesforce doesn't exist or is not of type boolean for bookingUid ${bookingUid}`
);