Преглед изворни кода

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
         php vendor/bin/phpunit
 
 
   unit-test-php83:
   unit-test-php83:
-    if: ${{ false }}
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     steps:
     steps:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3

+ 1 - 1
src/Models/User.php

@@ -119,7 +119,7 @@ final class User extends Model
             $query->whereIn('node_group', $group);
             $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');
             $query->where('node_bandwidth_limit', '=', 0)->orWhereRaw('node_bandwidth < node_bandwidth_limit');
         })->orderBy('node_class')
         })->orderBy('node_class')
             ->orderBy('name')
             ->orderBy('name')