Skip to content

Commit

Permalink
Fix for SDA abroad
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Nov 25, 2024
1 parent 5cc699b commit a562d7e
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 a562d7e

Please sign in to comment.