Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
fix: have bulk export return the correct type (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmayda committed Sep 17, 2021
1 parent e2ccf52 commit bbf22ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bulkExport/bulkExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import AWS from '../AWS';
import { BulkExportJob } from './types';

const EXPIRATION_TIME_SECONDS = 1800;
const EXPORT_CONTENT_TYPE = 'application/fhir+ndjson';
const EXPORT_RESULTS_BUCKET = process.env.EXPORT_RESULTS_BUCKET || ' ';
const EXPORT_RESULTS_SIGNER_ROLE_ARN = process.env.EXPORT_RESULTS_SIGNER_ROLE_ARN || '';
const EXPORT_STATE_MACHINE_ARN = process.env.EXPORT_STATE_MACHINE_ARN || '';
Expand Down Expand Up @@ -45,6 +46,7 @@ const signExportResults = async (keys: string[]): Promise<{ key: string; url: st
Bucket: EXPORT_RESULTS_BUCKET,
Key: key,
Expires: EXPIRATION_TIME_SECONDS,
ResponseContentType: EXPORT_CONTENT_TYPE,
}),
})),
);
Expand Down

0 comments on commit bbf22ae

Please sign in to comment.