mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-18 05:04:40 +03:00
Refactor: Use any instead of interface{}
This commit is contained in:
@@ -46,7 +46,7 @@ func (s *UserService) UpdateUser(id int, username string, password string) error
|
||||
db := database.GetDB()
|
||||
return db.Model(model.User{}).
|
||||
Where("id = ?", id).
|
||||
Updates(map[string]interface{}{"username": username, "password": password}).
|
||||
Updates(map[string]any{"username": username, "password": password}).
|
||||
Error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user