Skip to content

Commit

Permalink
fix(EMS-3901): data migration - requestedCreditLimit column (#3255)
Browse files Browse the repository at this point in the history
* chore(typescript): update config

* chore(e2e): fix typo

* fix(EMS-3901): data migration - requestedCreditLimit

* chore(typescript): update config
  • Loading branch information
ttbarnes authored Oct 29, 2024
1 parent d176da2 commit cf86b8e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '../../../../../../../constants';
import { INSURANCE_ROUTES } from '../../../../../../../constants/routes/insurance';
import { INSURANCE_FIELD_IDS } from '../../../../../../../constants/field-ids/insurance';
import { FIELDS_ELIGIBILITY } from '../../../../../../../content-strings/fields/insurance/eligibility';
import { ELIGIBILITY_FIELDS } from '../../../../../../../content-strings/fields/insurance/eligibility';

const CONTENT_STRINGS = PAGES.INSURANCE.ELIGIBILITY.COMPANIES_HOUSE_NUMBER;

Expand All @@ -26,7 +26,7 @@ const {
ELIGIBILITY: { COMPANIES_HOUSE_NUMBER: FIELD_ID },
} = INSURANCE_FIELD_IDS;

const FIELD_STRINGS = FIELDS_ELIGIBILITY[FIELD_ID];
const FIELD_STRINGS = ELIGIBILITY_FIELDS[FIELD_ID];

const field = fieldSelector(FIELD_ID);

Expand Down
5 changes: 4 additions & 1 deletion src/api/.keystone/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import executeSqlQuery from '../../execute-sql-query';
const addPolicyRequestedCreditLimitField = (connection: Connection) =>
executeSqlQuery({
connection,
query: `ALTER TABLE Policy ADD requestedCreditLimit tinyint(1) DEFAULT NULL`,
query: `ALTER TABLE Policy ADD requestedCreditLimit int DEFAULT NULL`,
loggingMessage: 'Adding FIELD requestedCreditLimit to policy table',
});

Expand Down
1 change: 0 additions & 1 deletion src/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,

"noPropertyAccessFromIndexSignature": false,
"suppressImplicitAnyIndexErrors": true,
"ignoreDeprecations": "5.0",
"resolveJsonModule": true,

Expand Down

0 comments on commit cf86b8e

Please sign in to comment.