fix comment

This commit is contained in:
Hoang 2021-11-06 17:35:29 +07:00
parent 232349cd44
commit 1631f921b0
2 changed files with 3 additions and 3 deletions

View File

@ -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(),
}) })