v0.0.154
This commit is contained in:
parent
93c4cf31a8
commit
603ec82b83
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.153"
|
const GoextVersion = "0.0.154"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-06-08T16:24:15+0200"
|
const GoextVersionTimestamp = "2023-06-08T16:24:53+0200"
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"go.mongodb.org/mongo-driver/mongo"
|
"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})
|
_, err := c.coll.DeleteOne(ctx, bson.M{"_id": id})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user