From 5afbc31649bcec6f3040145aa778cc8d8d46bf55 Mon Sep 17 00:00:00 2001 From: LinHuiqing Date: Wed, 20 Sep 2023 02:06:19 +0800 Subject: [PATCH] refactor: rm version check in receiveStorageSubmission --- .../submission/receiver/receiver.middleware.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/app/modules/submission/receiver/receiver.middleware.ts b/src/app/modules/submission/receiver/receiver.middleware.ts index 114c36d509..2850c8f405 100644 --- a/src/app/modules/submission/receiver/receiver.middleware.ts +++ b/src/app/modules/submission/receiver/receiver.middleware.ts @@ -52,22 +52,8 @@ export const receiveEmailSubmission: ControllerHandler< export const receiveStorageSubmission: ControllerHandler< unknown, { message: string }, - { responses: FieldResponse[]; version: number } + { responses: FieldResponse[] } > = async (req, res, next) => { - if (req.body.version >= 2.1) { - const logMeta = { - action: 'receiveSubmission', - ...createReqMeta(req), - } - - logger.info({ - message: 'Skipping multipart receiver since storage submission v2.1+', - meta: logMeta, - }) - - return next() - } - return receiveSubmission( req, res,