Skip to content

Commit

Permalink
fix(downloadall): Fix a bug causing failure to dwonload all (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f authored Nov 30, 2023
1 parent 085eec0 commit 6c53fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/api/handlers/getAttachmentUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export const handler = async (event: APIGatewayEvent) => {
const allAttachments = [
...(results.hits.hits[0]._source.attachments || []),
...Object.values(results.hits.hits[0]._source.rais).flatMap((entry) => [
...(entry.request.attachments || []),
...(entry.response.attachments || []),
...(entry.request?.attachments || []),
...(entry.response?.attachments || []),
]),
];

Expand Down

0 comments on commit 6c53fda

Please sign in to comment.