Skip to content

Commit

Permalink
fix(download bug): Fix a path issue when generating download urls (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f authored Sep 18, 2023
1 parent 03b6d28 commit 3e4d7e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/api/handlers/getAttachmentUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ export const handler = async (event: APIGatewayEvent) => {
}

const allAttachments = [
...results.hits[0]._source.attachments,
...results.hits[0]._source.raiResponses.map((R) => R.attachments).flat(),
...results.hits.hits[0]._source.attachments,
...results.hits.hits[0]._source.raiResponses
.map((R) => R.attachments)
.flat(),
];

if (
Expand Down

0 comments on commit 3e4d7e1

Please sign in to comment.