fix bug in GetRecipe
This commit is contained in:
parent
d0b82dde31
commit
565acde3cd
|
@ -0,0 +1 @@
|
|||
docker-compose.yml
|
|
@ -178,7 +178,7 @@ func (s *Storage) GetRecipes(ctx context.Context, offset, limit int) ([]models.R
|
|||
func (s *Storage) GetRecipe(ctx context.Context, r_id uint) (models.Recipe, error) {
|
||||
const op = "storage.postgresql.GetRecipe"
|
||||
|
||||
var recipe models.Recipe
|
||||
var recipe models.Recipe = models.Recipe{ID: r_id}
|
||||
|
||||
err := s.db.QueryRow(
|
||||
ctx,
|
||||
|
|
Loading…
Reference in New Issue