diff --git a/hellotext/Services/CreateProfile.php b/hellotext/Services/CreateProfile.php index 3809365..bcbcaa2 100644 --- a/hellotext/Services/CreateProfile.php +++ b/hellotext/Services/CreateProfile.php @@ -22,7 +22,9 @@ public function __construct($user_id) public function process () { - if (!$this->verify_if_profile_exists();) { + if (! $this->user_id) return; + + if (! $this->verify_if_profile_exists()) { $this->get_user(); $this->create_hellotext_profile(); }