Skip to content

Commit

Permalink
Format codes
Browse files Browse the repository at this point in the history
  • Loading branch information
huangdijia committed Dec 31, 2024
1 parent 58715ab commit 988b767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lock/src/Driver/DatabaseLock.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public function acquire(): bool
} catch (QueryException) {
$updated = $this->connection->table($this->table)
->where('key', $this->name)
->where(fn ($query) => $query->where('owner', $this->owner)->orWhere('expiration', '<=', time()))->update([
->where(fn ($query) => $query->where('owner', $this->owner)->orWhere('expiration', '<=', time()))
->update([
'owner' => $this->owner,
'expiration' => $this->expiresAt(),
]);
Expand Down

0 comments on commit 988b767

Please sign in to comment.