Skip to content

Commit

Permalink
update image url parameter on master
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasholderness committed Aug 22, 2017
1 parent 4658a21 commit 3b49670
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/routes/cards/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b49670

Please sign in to comment.