|
|
@ -298,7 +298,6 @@ func (m *MsgMongoDriver) MarkSingleChatMsgsAsRead(ctx context.Context, userID st
|
|
|
|
SetFilter(filter).
|
|
|
|
SetFilter(filter).
|
|
|
|
SetUpdate(update)
|
|
|
|
SetUpdate(update)
|
|
|
|
updates = append(updates, updateModel)
|
|
|
|
updates = append(updates, updateModel)
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_, err := m.MsgCollection.BulkWrite(ctx, updates)
|
|
|
|
_, err := m.MsgCollection.BulkWrite(ctx, updates)
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|