From 3b4967078d808f129bf1c372bb5503c681b66434 Mon Sep 17 00:00:00 2001 From: Tomas Date: Tue, 22 Aug 2017 18:05:56 -0400 Subject: [PATCH] update image url parameter on master --- src/api/routes/cards/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/routes/cards/index.js b/src/api/routes/cards/index.js index 256869a..b6d1ff2 100644 --- a/src/api/routes/cards/index.js +++ b/src/api/routes/cards/index.js @@ -207,8 +207,10 @@ res.status(404).json({statusCode: 404, cardId: req.params.cardId, } else { // Try and submit the report and update the card cards(config, db, logger).updateReport(card, - {image_url: 'https://'+config.IMAGES_HOST+'/' - +req.params.cardId+'.jpg'}) + { //image_url: 'https://'+config.IMAGES_HOST+'/' + //+req.params.cardId+'.jpg'} + //TODO decide on where url is created, here or DB + image_url: req.params.cardId + '.jpg'}) .then((data) => { clearCache(); logger.debug( 's3 signed request: ' + returnData.signedRequest);