Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grimpirate authored Oct 16, 2024
1 parent 324f65e commit c7f60ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/Session/Handlers/DatabaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ protected function releaseLock(): bool
private function now(string $interval): string
{
$DBDriver = config(Database::class)->{$this->DBGroup}['DBDriver'];

return match($DBDriver) {
'SQLite3' => "datetime('now', '-{$interval}')",
default => "now() - INTERVAL {$interval}",
Expand Down

0 comments on commit c7f60ec

Please sign in to comment.