fix failed tests
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 6m55s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 50s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-07-07 04:12:02 -04:00
parent 031e499819
commit 3fde161f29
15 changed files with 193 additions and 11 deletions
+4
View File
@@ -11,10 +11,14 @@ class EmailTemplate extends BaseModel
protected $fillable = [
'template_key',
'code',
'variant',
'name',
'subject',
'body',
'body_html',
'is_active',
'updated_by',
];
protected $casts = [
@@ -42,7 +42,7 @@ class StudentProfileService
$shouldSyncConditions = array_key_exists('medical_conditions', $payload);
$shouldSyncAllergies = array_key_exists('allergies', $payload);
DB::transaction(function () use ($student, $studentData, $conditions, $allergies): void {
DB::transaction(function () use ($student, $studentData, $conditions, $allergies, $shouldSyncConditions, $shouldSyncAllergies): void {
if (! empty($studentData)) {
$student->update($studentData);
}