|
|
@ -14,9 +14,9 @@ func (c *MsgTool) ConvertTools() {
|
|
|
|
log.ZError(ctx, "get all conversation ids failed", err)
|
|
|
|
log.ZError(ctx, "get all conversation ids failed", err)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// for _, conversationID := range conversationIDs {
|
|
|
|
for _, conversationID := range conversationIDs {
|
|
|
|
// conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationIDByConversationID(conversationID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationIDByConversationID(conversationID))
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
userIDs, err := c.userDatabase.GetAllUserID(ctx, 0, 0)
|
|
|
|
userIDs, err := c.userDatabase.GetAllUserID(ctx, 0, 0)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.ZError(ctx, "get all user ids failed", err)
|
|
|
|
log.ZError(ctx, "get all user ids failed", err)
|
|
|
@ -27,6 +27,6 @@ func (c *MsgTool) ConvertTools() {
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetConversationIDBySessionType(constant.SingleChatType, userID, userID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetConversationIDBySessionType(constant.SingleChatType, userID, userID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationID(constant.SingleChatType, userID, userID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationID(constant.SingleChatType, userID, userID))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.ZDebug(ctx, "all userIDs", "len userIDs", len(conversationIDs))
|
|
|
|
log.ZDebug(ctx, "all conversationIDs", "len userIDs", len(conversationIDs))
|
|
|
|
c.msgDatabase.ConvertMsgsDocLen(ctx, conversationIDs)
|
|
|
|
c.msgDatabase.ConvertMsgsDocLen(ctx, conversationIDs)
|
|
|
|
}
|
|
|
|
}
|
|
|
|