This commit is contained in:
wangchuxiao
2023-06-12 20:43:09 +08:00
parent 24120b61c0
commit 43f782b6ce
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -291,7 +291,7 @@ func (m *MsgMongoDriver) MarkSingleChatMsgsAsRead(ctx context.Context, userID st
}
update := bson.M{
"$set": bson.M{
fmt.Sprintf("msgs.%d.msg.is_read", index): true,
fmt.Sprintf("msgs.%d.is_read", index): true,
},
}
updateModel := mongo.NewUpdateManyModel().