perf(chat): 使用预聚合快照优化客服会话统计
This commit is contained in:
@@ -805,6 +805,7 @@ func (r *Repository) notifyDeliveredQrCodeMessages(messages []model.ChatMessage)
|
||||
},
|
||||
}
|
||||
tenantScopedEvent(r.db, event)
|
||||
r.invalidateAdminChatCounts(context.Background(), event.TenantIDs)
|
||||
r.hub.NotifyConversation(msg.ConversationID, event)
|
||||
r.hub.NotifyAllAdmins(event)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user