Align GoChat with Chatwoot frontend contracts
This commit is contained in:
@@ -257,6 +257,7 @@ func (h *TwilioWebhookHandler) lookupInboxByPhoneNumber(phoneNumber string) (*mo
|
||||
if h.db == nil {
|
||||
return nil, fmt.Errorf("twilio webhook database is not configured")
|
||||
}
|
||||
phoneNumber = normalizeTwilioPhone(phoneNumber)
|
||||
|
||||
var channel channelmodel.ChannelTwilioSMS
|
||||
if err := h.db.Where("phone_number = ?", phoneNumber).First(&channel).Error; err != nil {
|
||||
|
||||
Reference in New Issue
Block a user