Skip to content

Commit

Permalink
duplicating where
Browse files Browse the repository at this point in the history
  • Loading branch information
Raajheer1 committed Oct 5, 2024
1 parent b526586 commit 06aa9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/database/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 06aa9dd

Please sign in to comment.