From b984cb9924db0fa4290f244cecb8977b31b719d6 Mon Sep 17 00:00:00 2001 From: Adam Hodges Date: Sat, 29 Jun 2024 16:25:32 -0400 Subject: [PATCH] Test --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 89a7107..b0910f6 100644 --- a/main_test.go +++ b/main_test.go @@ -15,7 +15,7 @@ func TestGORM(t *testing.T) { var result User - if err := DB.Where("id = ?", user.ID).First(&result).Update("name", "jinzhu 2").Error; err != nil { + if err := DB.First(&result, user.ID).Update("name", "jinzhu 2").Error; err != nil { t.Errorf("Failed, got error: %v", err) } }