Skip to content

Commit

Permalink
remove profile create with no user
Browse files Browse the repository at this point in the history
  • Loading branch information
ricvillagrana committed Dec 7, 2023
1 parent bd7d966 commit 582fef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hellotext/Services/CreateProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 582fef0

Please sign in to comment.