update api key

This commit is contained in:
2026-04-02 14:41:31 +08:00
parent 3a2b175028
commit d28a014209
4 changed files with 14 additions and 5 deletions
-1
View File
@@ -86,7 +86,6 @@ class ApiKey extends Model
return static::query()
->where('key_hash', $hash)
->where('enabled', true)
->where(function ($query): void {
$query->whereNull('expires_at')
->orWhere('expires_at', '>', \Carbon\Carbon::now());