| @@ 33-38 (lines=6) @@ | ||
| 30 | ->where('applicant_type', $model['applicant_type']); |
|
| 31 | } |
|
| 32 | ||
| 33 | if (is_object($model)) { |
|
| 34 | $query->where('type', $applicationType) |
|
| 35 | ->where('status', $applicationStatus) |
|
| 36 | ->where('applicant_id', $model->id) |
|
| 37 | ->where('applicant_type', get_class($model)); |
|
| 38 | } |
|
| 39 | ||
| 40 | return $query->update([ |
|
| 41 | 'status' => is_string($criteria) ? $criteria : $newStatus, |
|
| @@ 82-87 (lines=6) @@ | ||
| 79 | ->where('applicant_type', $model['applicant_type']); |
|
| 80 | } |
|
| 81 | ||
| 82 | if (is_object($model)) { |
|
| 83 | $query->where('type', $applicationType) |
|
| 84 | ->where('status', $applicationStatus) |
|
| 85 | ->where('applicant_id', $model->id) |
|
| 86 | ->where('applicant_type', get_class($model)); |
|
| 87 | } |
|
| 88 | ||
| 89 | return $query; |
|
| 90 | } |
|