This commit is contained in:
2023-06-08 16:24:53 +02:00
parent 93c4cf31a8
commit 603ec82b83
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"
)
func (c *Coll[TData]) DeleteOnebyID(ctx context.Context, id EntityID) error {
func (c *Coll[TData]) DeleteOneByID(ctx context.Context, id EntityID) error {
_, err := c.coll.DeleteOne(ctx, bson.M{"_id": id})
if err != nil {
return err