diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-03-12 22:13:51 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-03-12 22:43:43 +0300 |
| commit | 0bde51b91ea505e38569ae3cbe575695abd2db60 (patch) | |
| tree | 3d27346586f5802d12cdbb7a1fe95c2b5d46156f /web/service/user.go | |
| parent | 280a22b57d14a372d99bcc49add515721290678b (diff) | |
Refactor: Use any instead of interface{}
Diffstat (limited to 'web/service/user.go')
| -rw-r--r-- | web/service/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/service/user.go b/web/service/user.go index fdfffa3c..7438cf1a 100644 --- a/web/service/user.go +++ b/web/service/user.go @@ -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 } |
