From 59e6f7ebe87c516752275d11673557cc58ed9d09 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Mon, 9 Dec 2019 17:29:18 -0500 Subject: Fix ingredient unit type to be same across frontend & backend --- backend/recipe.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'backend/recipe.go') diff --git a/backend/recipe.go b/backend/recipe.go index a3191c3..3511fd6 100644 --- a/backend/recipe.go +++ b/backend/recipe.go @@ -6,8 +6,7 @@ import "strings" type Ingredient struct { Name string `json:"name"` Amount float64 `json:"amount"` - Unit string `json:"units"` - Type string `json:"type"` + Unit string `json:"unit"` } type Step struct { -- cgit v1.1 From c85f7519729d5ad4120f60d742e5f5e6f62d136e Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Tue, 10 Dec 2019 14:50:28 -0500 Subject: Fix intructions -> intruction for backend json Now the same as frontend data models. --- backend/recipe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/recipe.go') diff --git a/backend/recipe.go b/backend/recipe.go index 3511fd6..59b7366 100644 --- a/backend/recipe.go +++ b/backend/recipe.go @@ -10,7 +10,7 @@ type Ingredient struct { } type Step struct { - Desc string `json:"instructions"` + Desc string `json:"instruction"` Time int `json:"timer"` } -- cgit v1.1