Skip to content

Commit a76fb28

Browse files
authored
Merge pull request #2065 from bcgov/bugfix/ALCS-2360-fix-label-typos
ALCS-2360 Migration and label fixes
2 parents 8ea28bf + 775f9f8 commit a76fb28

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

alcs-frontend/src/app/services/search/file-type/file-type-data-source.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const TREE_DATA: TreeNode[] = [
4646
item: { label: 'Subdivision', value: 'SUBD' },
4747
},
4848
{
49-
item: { label: 'Transportation, Utility, Trail Permits', value: 'TURP' },
49+
item: { label: 'Transportation, Utility, or Recreational Trail', value: 'TURP' },
5050
},
5151
{
5252
item: { label: 'Restrictive Covenant', value: 'COVE' },
@@ -155,7 +155,7 @@ const COMMISSIONER_TREE_DATA: TreeNode[] = [
155155
item: { label: 'Subdivision', value: 'SUBD' },
156156
},
157157
{
158-
item: { label: 'Transportation, Utility, Trail Permits', value: 'TURP' },
158+
item: { label: 'Transportation, Utility, or Recreational Trail', value: 'TURP' },
159159
},
160160
{
161161
item: { label: 'Restrictive Covenant', value: 'COVE' },
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { MigrationInterface, QueryRunner } from "typeorm";
2+
3+
export class TurpLabelFix1737402613673 implements MigrationInterface {
4+
5+
public async up(queryRunner: QueryRunner): Promise<void> {
6+
await queryRunner.query(`
7+
UPDATE alcs.application_decision_component_type SET
8+
label = 'Transportation, Utility, or Recreational Trail',
9+
description = 'Transportation, Utility, or Recreational Trail'
10+
WHERE code = 'TURP';
11+
`);
12+
}
13+
14+
public async down(queryRunner: QueryRunner): Promise<void> {
15+
await queryRunner.query(`
16+
UPDATE alcs.application_decision_component_type SET
17+
label = 'Transportation, Utility, and Recreational Trail',
18+
description = 'Transportation, Utility, and Recreational Trail'
19+
WHERE code = 'TURP';
20+
`);
21+
}
22+
23+
}

services/templates/emails/submitted-to-alc/tur-applicant.template.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { feesTable } from '../partials/fees-table.template';
33
import { notificationOnly } from '../partials/notification-only.template';
44

55
const turFees = [
6-
{ type: 'Transportation, Utility, and Recreational Trail Uses', fee: 1500 },
6+
{ type: 'Transportation, Utility, or Recreational Trail Uses', fee: 1500 },
77
];
88

99
export const template = build(

0 commit comments

Comments
 (0)