From 8ac07abb30d5645e15f0ca44dafaaf69770f9db4 Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Thu, 25 Jul 2024 01:45:03 +0500 Subject: [PATCH] refactor: --- internal/services/user.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/services/user.go b/internal/services/user.go index 6915560..ee4d8e3 100644 --- a/internal/services/user.go +++ b/internal/services/user.go @@ -168,7 +168,16 @@ func (u *UserService) ReadUser(ctx context.Context, token string, id int32) (*st // // Returns: // - error: An error if the operation fails. -func (u *UserService) UpdateUser(ctx context.Context, token string, id int32, username *string, password *string, email *string, expiresAt *time.Time, role *int32) error { +func (u *UserService) UpdateUser( + ctx context.Context, + token string, + id int32, + username *string, + password *string, + email *string, + expiresAt *time.Time, + role *int32, +) error { me, err := u.ReadUserBySessionToken(ctx, token) if err != nil { return err