conversation

This commit is contained in:
wangchuxiao
2023-04-20 16:23:41 +08:00
parent b05bedf243
commit 934e531840
3 changed files with 8 additions and 7 deletions
+5 -4
View File
@@ -168,10 +168,11 @@ func (c *ConversationDataBase) SetUserConversations(ctx context.Context, ownerUs
return err
}
if len(existConversations) > 0 {
log.ZDebug(ctx, "SetUserConversations", "existConversations", existConversations)
err = conversationTx.Update(ctx, conversations)
if err != nil {
return err
for _, conversation := range conversations {
err = conversationTx.Update(ctx, conversation)
if err != nil {
return err
}
}
}
var existConversationIDs []string