Skip to content

Commit 0580cf6

Browse files
authored
Merge pull request #1997 from bcgov/bugfix/ALCS-2399-order-condition-types
ALCS-2399 Order by label on retrieving codes
2 parents 24ac05f + 6843777 commit 0580cf6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

services/apps/alcs/src/alcs/application-decision/application-decision-v2/application-decision/application-decision-v2.service.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,11 @@ export class ApplicationDecisionV2Service {
609609
},
610610
}),
611611
this.decisionComponentTypeRepository.find(),
612-
this.decisionConditionTypeRepository.find(),
612+
this.decisionConditionTypeRepository.find({
613+
order: {
614+
label: 'ASC',
615+
},
616+
}),
613617
this.naruNaruSubtypeRepository.find(),
614618
]);
615619

services/apps/alcs/src/alcs/notice-of-intent-decision/notice-of-intent-decision-v2/notice-of-intent-decision-v2.service.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,11 @@ export class NoticeOfIntentDecisionV2Service {
500500
const values = await Promise.all([
501501
this.decisionOutcomeRepository.find(),
502502
this.decisionComponentTypeRepository.find(),
503-
this.decisionConditionTypeRepository.find(),
503+
this.decisionConditionTypeRepository.find({
504+
order: {
505+
label: 'ASC',
506+
},
507+
}),
504508
]);
505509

506510
return {

0 commit comments

Comments
 (0)