refactor:

This commit is contained in:
Vyacheslav1557 2024-07-25 01:45:03 +05:00
parent 717ed1f330
commit 8ac07abb30

View file

@ -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