ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge remote-tracking branch 'origin/master'

+2 -1
+2 -1
internal/recipes/generator.go
··· 170 170 slog.InfoContext(ctx, "generated chat", "location", p.String(), "duration", time.Since(start), "hash", hash) 171 171 172 172 // Save each recipe separately by its hash 173 - for _, recipe := range shoppingList.Recipes { 173 + for i := range shoppingList.Recipes { 174 + recipe := &shoppingList.Recipes[i] 174 175 recipe.OriginHash = p.Hash() 175 176 recipeJSON := lo.Must(json.Marshal(recipe)) 176 177 if err := g.cache.Set("recipe/"+recipe.ComputeHash(), string(recipeJSON)); err != nil {