feat(conversations): trim search payload meta

This commit is contained in:
2026-06-07 03:57:45 +08:00
parent 41bdec333b
commit 7892799802
3 changed files with 12 additions and 6 deletions
@@ -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