mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
log
This commit is contained in:
parent
4f0813889c
commit
a9c093ac59
@ -120,6 +120,9 @@ func (m *MsgMongoDriver) GetOldestMsg(ctx context.Context, sourceID string) (*ta
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *MsgMongoDriver) Delete(ctx context.Context, docIDs []string) error {
|
func (m *MsgMongoDriver) Delete(ctx context.Context, docIDs []string) error {
|
||||||
|
if docIDs == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
_, err := m.MsgCollection.DeleteMany(ctx, bson.M{"uid": bson.M{"$in": docIDs}})
|
_, err := m.MsgCollection.DeleteMany(ctx, bson.M{"uid": bson.M{"$in": docIDs}})
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user