by Robin at 20241225
This commit is contained in:
parent
615d0d7024
commit
5db69591df
|
@ -4976,7 +4976,7 @@ func (m *Mongo) GetZoneMomentById(ctx *gin.Context, id int64) (*dbstruct.ZoneMom
|
|||
err := col.Find(ctx, query).One(&zonemoment)
|
||||
if err == qmgo.ErrNoSuchDocuments {
|
||||
err = nil
|
||||
return zonemoment, err
|
||||
return nil, err
|
||||
}
|
||||
return zonemoment, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue