@@ -15,7 +15,7 @@ import {
15
15
} from "." ;
16
16
import { calendarEventsSchema , contactsSchema } from "../schemas" ;
17
17
import { shouldSkipCallEvent } from "../util/call-event.util" ;
18
- import { errorLogger , infoLogger } from "../util/logger.util" ;
18
+ import { errorLogger , infoLogger , warnLogger } from "../util/logger.util" ;
19
19
import { parsePhoneNumber } from "../util/phone-number-utils" ;
20
20
import { validate } from "../util/validate" ;
21
21
import { APIContact } from "./api-contact.model" ;
@@ -260,7 +260,7 @@ export class Controller {
260
260
}
261
261
262
262
infoLogger (
263
- "createContact " ,
263
+ "updateContact " ,
264
264
`Contact with id ${ contact . id } updated` ,
265
265
apiKey
266
266
) ;
@@ -333,7 +333,7 @@ export class Controller {
333
333
res . status ( 200 ) . send ( ) ;
334
334
335
335
infoLogger (
336
- "createContact " ,
336
+ "deleteContact " ,
337
337
`Contact with id ${ contactId } deleted` ,
338
338
apiKey
339
339
) ;
@@ -615,11 +615,18 @@ export class Controller {
615
615
req . body
616
616
) ;
617
617
618
- infoLogger (
619
- "handleCallEvent" ,
620
- `CallEvent with refId ${ integrationCallEventRef } created!` ,
621
- providerConfig . apiKey
622
- ) ;
618
+ if ( integrationCallEventRef != "" )
619
+ infoLogger (
620
+ "handleCallEvent" ,
621
+ `CallEvent with refId ${ integrationCallEventRef } created!` ,
622
+ providerConfig . apiKey
623
+ ) ;
624
+ else
625
+ warnLogger (
626
+ "handleCallEvent" ,
627
+ `Did not create callEvent` ,
628
+ providerConfig . apiKey
629
+ ) ;
623
630
624
631
infoLogger ( "handleCallEvent" , `END` , providerConfig . apiKey ) ;
625
632
res . status ( 200 ) . send ( integrationCallEventRef ) ;
0 commit comments