From 0f1bff66dcc123fc3296be006906493c5dbd959b Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Tue, 7 Feb 2023 23:31:06 -0300 Subject: [PATCH] fix incorrect json variable name --- backend/models/level.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/models/level.go b/backend/models/level.go index fa99b18..b7197ea 100644 --- a/backend/models/level.go +++ b/backend/models/level.go @@ -5,5 +5,5 @@ import "gorm.io/gorm" type Level struct { gorm.Model ID uint64 `json:"ID" gorm:"primaryKey"` - Name string `json:"rut" gorm:"unique;not null"` + Name string `json:"name" gorm:"unique;not null"` }