by Robin at 20241225

This commit is contained in:
Robin 2024-12-25 13:00:38 +08:00
parent 615d0d7024
commit 5db69591df
1 changed files with 1 additions and 1 deletions

View File

@ -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
}