From 4f58766704d2b3525b95ba65bf8bc9171ab3e98a Mon Sep 17 00:00:00 2001 From: James Peacock Date: Wed, 18 Dec 2024 17:02:34 +0000 Subject: [PATCH] PP-13312 remove redundant lines --- .../settings/card-types/card-types.controller.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/simplified-account/settings/card-types/card-types.controller.js b/app/controllers/simplified-account/settings/card-types/card-types.controller.js index 29da2882c..c8974759c 100644 --- a/app/controllers/simplified-account/settings/card-types/card-types.controller.js +++ b/app/controllers/simplified-account/settings/card-types/card-types.controller.js @@ -35,8 +35,6 @@ async function post (req, res, next) { let selectedCardTypeIds const sanitiseToArray = value => Array.isArray(value) ? value : (value ? [value] : []) const validations = [ - body('debit').customSanitizer(sanitiseToArray), - body('credit').customSanitizer(sanitiseToArray), body() .custom((_, { req }) => { selectedCardTypeIds = sanitiseToArray(req.body.debit).concat(sanitiseToArray(req.body.credit))