Skip to content

Commit

Permalink
some minor fixes when updating status
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirmuxsin committed Dec 8, 2023
1 parent 6142602 commit 222a2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FSM/FSM.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ public static function status(int $user_id = null): string

public static function update(string $status, int $user_id = null)
{
$user_id = self::getUserId();
if (!$user_id) $user_id = self::getUserId();
$fsm = \Milly\Laragram\app\Models\FSM::find($user_id);
$fsm->status = $status;
$fsm['status'] = $status;
return $fsm->save();
}

Expand Down

0 comments on commit 222a2b0

Please sign in to comment.