diff --git a/src/app/pd/services/twilio/twilio.service.ts b/src/app/pd/services/twilio/twilio.service.ts index bbc2159..b2b5cc1 100644 --- a/src/app/pd/services/twilio/twilio.service.ts +++ b/src/app/pd/services/twilio/twilio.service.ts @@ -138,7 +138,9 @@ export class TwilioService { }); let withoutcustomer = this.getWithOutCustomer(this.roomParticipants) console.log('getWithOutCustomer',withoutcustomer) - if(this.user_data.type == '2') { + alert(this.user_data.type); + alert(withoutcustomer); + if((this.user_data.type == '2'|| this.user_data.type == '1') && (withoutcustomer == '1')) { console.log("User type in service",this.user_data) let params = {"fk_pd_id":this.user_data.pd_id,"room_id":this.roomObj.sid,"is_call_ended":"0"}