Move audit subscribe to client, Fix tests
This commit is contained in:
@@ -6,12 +6,11 @@ import (
|
||||
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
|
||||
"git.gsuntres.com/general/mongo/options"
|
||||
"git.gsuntres.com/general/commons"
|
||||
)
|
||||
|
||||
// DeleteOne will delete the first document that matches the filter.
|
||||
func (c *MongoClient) DeleteOne(ctx context.Context, database, name string, filter bson.M, opts ...options.Lister[options.DeleteOneOptions]) error {
|
||||
func (c *MongoClient) DeleteOne(ctx context.Context, database, name string, filter bson.M) error {
|
||||
var err error
|
||||
|
||||
// 1. Prepare query.
|
||||
|
||||
Reference in New Issue
Block a user