diff --git a/src/models/controller.model.ts b/src/models/controller.model.ts index 7dbcd17d..34fbc4fd 100644 --- a/src/models/controller.model.ts +++ b/src/models/controller.model.ts @@ -351,13 +351,13 @@ export class Controller { providerConfig.apiKey, { message: error.message, status: error.status }, ); + return; } errorLogger( 'streamContacts', - `[${orderingKey}] Could not publish contacts`, + `[${orderingKey}] Could not publish contacts (${error})`, providerConfig.apiKey, - error, ); } }; diff --git a/src/schemas/contacts.ts b/src/schemas/contacts.ts index ee1da1c5..d2034ff9 100644 --- a/src/schemas/contacts.ts +++ b/src/schemas/contacts.ts @@ -1,4 +1,5 @@ import { z } from 'zod'; +import { IntegrationEntityType } from '../models'; // export const contactsSchema: ValidationSchema = { // title: 'Contacts', @@ -81,6 +82,7 @@ export const contactSchema = z.object({ phoneNumber: z.string(), }), ), + type: z.nativeEnum(IntegrationEntityType).optional(), }); export const contactsGetSchema = z.array(contactSchema); @@ -99,4 +101,5 @@ export const contactCreateSchema = z.object({ phoneNumber: z.string(), }), ), + type: z.nativeEnum(IntegrationEntityType).optional(), });