From 06aa9dd0276930699e44dde799d45880b29805ef Mon Sep 17 00:00:00 2001 From: Raajheer1 Date: Sat, 5 Oct 2024 18:01:31 -0500 Subject: [PATCH] duplicating where --- pkg/database/models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/database/models/user.go b/pkg/database/models/user.go index 13d2048..ed3fe13 100644 --- a/pkg/database/models/user.go +++ b/pkg/database/models/user.go @@ -53,7 +53,7 @@ func (un *User) Get() error { return database.DB.Where("discord_id = ?", un.DiscordID).First(un).Error } - return database.DB.First(un, un.CID).Error + return database.DB.First(un).Error } func GetAllUsers() ([]User, error) {