From ae7a89ae3ed369eb63c743edec06107d95df8f68 Mon Sep 17 00:00:00 2001 From: devkcud Date: Sat, 8 Jun 2024 02:19:56 -0300 Subject: [PATCH] fix: Add colon between json and "country" im asleep --- internal/model/dto/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/dto/user.go b/internal/model/dto/user.go index 3e3fb64..1f18ec8 100644 --- a/internal/model/dto/user.go +++ b/internal/model/dto/user.go @@ -32,7 +32,7 @@ type UserUpdate struct { // NOTE: Notification and Show structs will be in another method/route to update // due to the nature of structs being a pain in the ass to work with :/ - Country string `validate:"omitempty" json"country"` + Country string `validate:"omitempty" json:"country"` Language language.Language `validate:"omitempty,mustbesupportedlanguage" json:"language"` }