fix comment
This commit is contained in:
parent
232349cd44
commit
1631f921b0
|
@ -8,8 +8,8 @@ import (
|
||||||
"go.mongodb.org/mongo-driver/bson"
|
"go.mongodb.org/mongo-driver/bson"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeleteDeviceByDeviceID ...
|
// DeleteByDeviceID ...
|
||||||
func (s Service) DeleteDeviceByDeviceID(deviceID string) error {
|
func (s Service) DeleteByDeviceID(deviceID string) error {
|
||||||
var (
|
var (
|
||||||
ctx = context.Background()
|
ctx = context.Background()
|
||||||
col = s.getDeviceCollection()
|
col = s.getDeviceCollection()
|
||||||
|
@ -20,7 +20,7 @@ func (s Service) DeleteDeviceByDeviceID(deviceID string) error {
|
||||||
|
|
||||||
// Delete
|
// Delete
|
||||||
if _, err := col.DeleteOne(ctx, cond); err != nil {
|
if _, err := col.DeleteOne(ctx, cond); err != nil {
|
||||||
logger.Error("devicemngt - deleteDeviceByDeviceID", logger.LogData{
|
logger.Error("devicemngt - deleteByDeviceID", logger.LogData{
|
||||||
"deviceID": deviceID,
|
"deviceID": deviceID,
|
||||||
"err": err.Error(),
|
"err": err.Error(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue