From 5684a3a8c20bb8e97bca0af421722c040339389c Mon Sep 17 00:00:00 2001 From: Abhishek Dasgupta Date: Fri, 4 Feb 2022 18:18:28 +0000 Subject: [PATCH] curator/api: Capitalise ISO code in downloadAsync --- verification/curator-service/api/src/controllers/cases.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/verification/curator-service/api/src/controllers/cases.ts b/verification/curator-service/api/src/controllers/cases.ts index 30e8ceba6..e3ba57045 100644 --- a/verification/curator-service/api/src/controllers/cases.ts +++ b/verification/curator-service/api/src/controllers/cases.ts @@ -115,10 +115,7 @@ export default class CasesController { this.getDownloadLink(req, res); return; } else if (this.hasCountryOnly(req.body.query)) { - const country = req.body.query - .split(':')[1] - .toLowerCase() - .replace(/ /g, '_'); + const country = req.body.query.split(':')[1].toUpperCase(); // capitalise ISO code const inBucket = await this.S3BucketContains( country, req.body.format,