瀏覽代碼

ci: re-enable php 8.3 unit test

M1Screw 1 年之前
父節點
當前提交
88a87ef22c
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      .github/workflows/unit.yaml
  2. 1 1
      src/Models/User.php

+ 0 - 1
.github/workflows/unit.yaml

@@ -31,7 +31,6 @@ jobs:
         php vendor/bin/phpunit
 
   unit-test-php83:
-    if: ${{ false }}
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3

+ 1 - 1
src/Models/User.php

@@ -119,7 +119,7 @@ final class User extends Model
             $query->whereIn('node_group', $group);
         }
 
-        return where(static function ($query): void {
+        return $query->where(static function ($query): void {
             $query->where('node_bandwidth_limit', '=', 0)->orWhereRaw('node_bandwidth < node_bandwidth_limit');
         })->orderBy('node_class')
             ->orderBy('name')