Need to merge editing in: Not sure why it isnt working #90

Merged
azpect merged 5 commits from feature/orm into master 2026-02-07 11:17:51 -07:00
Showing only changes of commit e81f2ec513 - Show all commits

View File

@ -492,16 +492,13 @@ func (r *RecipeRepository) SearchRecipes(filters domain.SearchFilters, userId *i
sql, args, err := query.ToSql()
if err != nil {
return nil, fmt.Errorf("[ERROR] Failed to build query: %w", err)
return nil, fmt.Errorf("Failed to build query: %w", err)
}
fmt.Println(sql)
fmt.Println(args)
// Execute query using SQLX
var ids []int
if err = r.db.Select(&ids, sql, args...); err != nil {
return nil, fmt.Errorf("[ERROR] Failed to query recipes: %w", err)
return nil, fmt.Errorf("Failed to query recipes: %w", err)
}
return ids, nil