From 60306fa0b02bcf503b15a92c4b26a58fdadfa39c Mon Sep 17 00:00:00 2001 From: George Goodall Date: Wed, 14 Feb 2024 15:09:00 +0000 Subject: [PATCH] remove old unneeded testing logic --- src/controllers/uploadController.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/controllers/uploadController.js b/src/controllers/uploadController.js index 9b1d7614..c3415b20 100644 --- a/src/controllers/uploadController.js +++ b/src/controllers/uploadController.js @@ -5,10 +5,8 @@ import config from '../../config/index.js' import { severityLevels } from '../utils/utils.js' import logger from '../utils/logger.js' -const apiEndpoint = process.env.NODE_ENV === 'test' ? config.api.localUrl : config.api.url - class UploadController extends PageController { - apiRoute = apiEndpoint + config.api.validationEndpoint + apiRoute = config.api.url + config.api.validationEndpoint async get (req, res, next) { req.form.options.validationError = this.validationErrorMessage