Skip to content

Commit

Permalink
fix: uint conv
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandrkhmil committed Dec 20, 2024
1 parent 8b4e641 commit 6624145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/db/seeders/user_seeder.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func NewUserSeeder(db *gorm.DB) *UserSeeder {
}

func (userSeeder *UserSeeder) SetUsers() {
users := map[int]map[string]string{
users := map[uint]map[string]string{
1: {
"email": "[email protected]",
"name": "user1",
Expand All @@ -33,7 +33,7 @@ func (userSeeder *UserSeeder) SetUsers() {
userSeeder.DB.First(&user, key)

if user.ID == 0 {
user.ID = uint(key)
user.ID = key
user.Email = value["email"]
user.Name = value["name"]
user.Password = value["password"]
Expand Down

0 comments on commit 6624145

Please sign in to comment.