feat(conversations): trim search payload meta
This commit is contained in:
@@ -87,7 +87,6 @@ type chatwootConversationSearchPayload struct {
|
||||
Inbox map[string]any `json:"inbox"`
|
||||
Messages []chatwootConversationSearchMessage `json:"messages"`
|
||||
AccountID uint `json:"account_id"`
|
||||
Meta chatwootConversationMeta `json:"meta"`
|
||||
}
|
||||
|
||||
type chatwootConversationSearchMessage struct {
|
||||
@@ -164,7 +163,6 @@ func serializeConversationSearch(ctx context.Context, db *gorm.DB, conversation
|
||||
Inbox: map[string]any{"id": conversation.InboxID, "channel_type": conversation.ChannelType},
|
||||
Messages: []chatwootConversationSearchMessage{},
|
||||
AccountID: conversation.AccountID,
|
||||
Meta: serializeConversationMeta(ctx, db, conversation),
|
||||
}
|
||||
if db == nil {
|
||||
return payload
|
||||
|
||||
Reference in New Issue
Block a user