Skip to content

Commit

Permalink
Merge branch 'develop' into bugfix/DEVSU-2498-fix-jest-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bnguyen-bcgsc authored Nov 18, 2024
2 parents 04985be + 3e72a3d commit f338ac5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/routes/variantText/variantText.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ router.route('/')
delete req.body.project;
delete req.body.template;

if (typeof req.body.cancerType === 'string') {
req.body.cancerType = [req.body.cancerType];
}

await validateAgainstSchema(createSchema, req.body);
} catch (error) {
const message = `Error while validating variant text create request ${error}`;
Expand Down

0 comments on commit f338ac5

Please sign in to comment.