From bbf8ec79d3fab3876a359c56b039aed875e5c773 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 17 Feb 2024 09:02:04 -0500 Subject: [PATCH] refactor: change info to be the model struct --- account/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/account.go b/account/account.go index f651b60..260c5b0 100644 --- a/account/account.go +++ b/account/account.go @@ -393,7 +393,7 @@ func (s AccountServiceDefault) doLogin(user *models.User, ip string) (string, er return token, nil } -func (s AccountServiceDefault) updateAccountInfo(userId uint, info interface{}) error { +func (s AccountServiceDefault) updateAccountInfo(userId uint, info models.User) error { var user models.User user.ID = userId