diff --git a/backend/internal/models/user.go b/backend/internal/models/user.go index 06db8dc..630dbfd 100644 --- a/backend/internal/models/user.go +++ b/backend/internal/models/user.go @@ -454,7 +454,7 @@ func UpdateUser(ctx context.Context, update UserUpdate) (*User, error) { } // Update salt and hash directly in the model - if err := tx.Model(user).Updates(map[string]interface{}{ + if err := tx.Model(user).Updates(map[string]any{ "salt": pwData.Salt, "hash": pwData.Hash, }).Error; err != nil { @@ -463,7 +463,7 @@ func UpdateUser(ctx context.Context, update UserUpdate) (*User, error) { } // Create map for generic update - updates := make(map[string]interface{}) + updates := make(map[string]any) // Add only non-password fields to the update if update.Email != nil { diff --git a/backend/tygo.yml b/backend/tygo.yml index a382056..0781f4d 100644 --- a/backend/tygo.yml +++ b/backend/tygo.yml @@ -1,5 +1,5 @@ packages: - - path: github.com/timetracker/backend/internal/interfaces/http/dto + - path: github.com/timetracker/backend/dto type_mappings: "time.Time": "string" "ulid.ULID": "string"