Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Correct URLs for data dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
nightsh committed Apr 24, 2017
1 parent c9d289f commit a2b3c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handlers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function data(request, reply) {
function _parseDumps(dumps) {
return (dumps.Contents || []).map((dump) => (
{
url: `${config.s3.bucket}/${dump.Key}`,
url: `${config.s3.customDomain}/${dump.Key}`,
label: dump.Key.split('/').pop(),
size: dump.Size,
}
Expand Down
2 changes: 1 addition & 1 deletion test/handlers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('data handler', () => {

should(dumps).be.deepEqual([
{
url: `${config.s3.bucket}/uploads/opentrials-api-2017-01-01.dump`,
url: `${config.s3.customDomain}/uploads/opentrials-api-2017-01-01.dump`,
label: 'opentrials-api-2017-01-01.dump',
size: 100,
},
Expand Down

0 comments on commit a2b3c5b

Please sign in to comment.