Skip to content

Commit

Permalink
Merge pull request #415 from bcgsc/bugfix/DEVSU-2549-cancerType-not-a…
Browse files Browse the repository at this point in the history
…-valid-property-for-variant-texts

Bugfix/devsu 2549 cancer type not a valid property for variant texts
  • Loading branch information
elewis2 authored Jan 30, 2025
2 parents 21e74da + ecdabb6 commit 1069dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/routes/variantText/variantText.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const createSchema = schemaGenerator(db.models.variantText, {
baseUri: '/create', exclude: [...BASE_EXCLUDE],
});
const updateSchema = schemaGenerator(db.models.variantText, {
baseUri: '/update', include: ['text'], nothingRequired: true,
baseUri: '/update', include: ['cancerType', 'text'], nothingRequired: true,
});

const pairs = {
Expand Down
2 changes: 1 addition & 1 deletion test/routes/variantText/variantText.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const UPDATE_DATA = {
text: '<p>new sample text</p>',
};
const INVALID_UPDATE_DATA = {
variantName: 'new variant name',
project_id: uuidv4(),
};

const variantTextProperties = [
Expand Down

0 comments on commit 1069dfe

Please sign in to comment.