Move audit subscribe to client, Fix tests

This commit is contained in:
George Suntres
2026-04-24 15:51:08 -04:00
parent d673df0ca1
commit 66ba2b8874
8 changed files with 128 additions and 30 deletions

View File

@@ -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.