This commit is contained in:
parent
73d3b45ac9
commit
0c0ffdceb1
|
@ -4973,7 +4973,7 @@ func (m *Mongo) GetZoneMomentById(ctx *gin.Context, id int64) (*dbstruct.ZoneMom
|
||||||
"_id": id,
|
"_id": id,
|
||||||
"del_flag": 0,
|
"del_flag": 0,
|
||||||
}
|
}
|
||||||
err := col.Find(ctx, query).One(&zonemoment)
|
err := col.Find(ctx, query).One(zonemoment)
|
||||||
if err == qmgo.ErrNoSuchDocuments {
|
if err == qmgo.ErrNoSuchDocuments {
|
||||||
err = nil
|
err = nil
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue