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
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user