Skip to content

Commit

Permalink
Merge pull request #1095 from kenjis/fix-UserModel-updateActiveDate
Browse files Browse the repository at this point in the history
fix: passing Time to Query Builder in UserModel
  • Loading branch information
kenjis committed Apr 14, 2024
2 parents 112d44b + 34d8722 commit 2ed8b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function updateActiveDate(User $user): void
assert($user->last_active instanceof Time);

// Safe date string for database
$last_active = $user->last_active;
$last_active = $this->timeToDate($user->last_active);

$this->builder()
->set('last_active', $last_active)
Expand Down

0 comments on commit 2ed8b33

Please sign in to comment.