From 1e8e2c3dea1d8f656514275dda06f529cead93ba Mon Sep 17 00:00:00 2001 From: rockwellll Date: Thu, 13 Feb 2025 07:53:24 +0300 Subject: [PATCH] attempt to assign the session when the profile is known already but the session may not have been attached yet --- src/Services/CreateProfile.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Services/CreateProfile.php b/src/Services/CreateProfile.php index bffd217..4efca17 100644 --- a/src/Services/CreateProfile.php +++ b/src/Services/CreateProfile.php @@ -69,6 +69,11 @@ public function create_hellotext_profile () { update_user_meta($this->user->ID, 'hellotext_profile_id', $profile); } + $this->client::patch("/sessions/{$this->session}", array( + 'session' => $this->session, + 'profile' => $response['body']['id'], + )); + return; }