fix bug in GetRecipe

This commit is contained in:
yyasha 2024-01-27 12:38:33 +03:00
parent d0b82dde31
commit 565acde3cd
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
docker-compose.yml

View File

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