Skip to content

Commit

Permalink
Merge pull request #319 from icefoganalytics/test
Browse files Browse the repository at this point in the history
Fix for SDA abroad
  • Loading branch information
datajohnson authored Nov 25, 2024
2 parents e7c8451 + a562d7e commit 354578b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/api/repositories/assessment/assessment-cslft-repository-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ export class AssessmentCslftRepositoryV2 {
student_category_id: sdaCategory.id,
})
.first();

if (!this.sdaAllowance) {
this.sdaAllowance = await this.db("sfa.student_living_allowance")
.where({
academic_year_id: this.application.academic_year_id,
province_id: 3, // use Yukon
student_category_id: sdaCategory.id,
})
.first();
}
}

async create(
Expand Down

0 comments on commit 354578b

Please sign in to comment.