Skip to content

Commit

Permalink
Merge pull request #520 from kpeu3u/fix-set-last-active
Browse files Browse the repository at this point in the history
refactor: updateActiveDate query builder
  • Loading branch information
kenjis authored Dec 4, 2022
2 parents ddab236 + 6aed867 commit cf21770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ public function updateActiveDate(User $user): void
// Safe date string for database
$last_active = $user->last_active->format('Y-m-d H:i:s');

$this->builder->set('last_active', $last_active)
$this->builder()
->set('last_active', $last_active)
->where('id', $user->id)
->update();
}
Expand Down

0 comments on commit cf21770

Please sign in to comment.