package profileRepository import ( "context" "time" "gitea.cybertalant.ru/VisionCareerMiniapp/MiniappGoService/internal/application/types" ) func (t *repository) UpdateUser(user *types.User) error { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() query := ` UPDATE users SET username = :username, target_role = :target_role, resume_path = :resume_path, work_experience = :work_experience, work_format = :work_format, salary_range = :salary_range, active_status = :active_status WHERE id = :id ` _, err := t.pgDB.NamedExecContext(ctx, query, user) return err }