diff options
Diffstat (limited to 'view/recipe.go')
-rw-r--r-- | view/recipe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/recipe.go b/view/recipe.go index ba670a2..7b9980d 100644 --- a/view/recipe.go +++ b/view/recipe.go @@ -13,7 +13,7 @@ func RecipeRead(w http.ResponseWriter, r *http.Request) { recipe.Id = mux.Vars(r)[`id`] var obj model.Object = &recipe - err := model.SafeCrud(obj.Read) + err := model.Transaction(obj.Read) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return |