fix tables to have school year, and remove school year from other tables.
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 5m48s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 1m33s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 5m48s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 1m33s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
This commit is contained in:
@@ -206,22 +206,6 @@ class BadgeUserLookupService
|
||||
} catch (\Throwable) {
|
||||
}
|
||||
|
||||
if (empty($schoolYears)) {
|
||||
try {
|
||||
if (Schema::hasTable('user_roles') && Schema::hasColumn('user_roles', 'school_year')) {
|
||||
$schoolYears = DB::table('user_roles')
|
||||
->selectRaw('DISTINCT school_year')
|
||||
->whereNotNull('school_year')
|
||||
->orderByDesc('school_year')
|
||||
->pluck('school_year')
|
||||
->filter()
|
||||
->values()
|
||||
->all();
|
||||
}
|
||||
} catch (\Throwable) {
|
||||
}
|
||||
}
|
||||
|
||||
return $schoolYears;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user