From ce3ee9e9dcb59138d830b52c26dc584883a7fe1f Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sat, 10 Aug 2024 00:24:15 -0400 Subject: Update FrequencyType to use enum in Chore and ChoreReq struct --- internal/chore/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/chore/handler.go') diff --git a/internal/chore/handler.go b/internal/chore/handler.go index 16c80ef..01490cc 100644 --- a/internal/chore/handler.go +++ b/internal/chore/handler.go @@ -33,7 +33,7 @@ type ThingTrigger struct { type ChoreReq struct { Name string `json:"name" binding:"required"` - FrequencyType string `json:"frequencyType"` + FrequencyType chModel.FrequencyType `json:"frequencyType"` ID int `json:"id"` DueDate string `json:"dueDate"` Assignees []chModel.ChoreAssignees `json:"assignees"` -- cgit