Skip to content

Commit

Permalink
fix: piping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinand11 committed Sep 25, 2024
1 parent fec0a79 commit 92e666c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:21.7.1-alpine3.19 as base
FROM node:22.9.0-alpine3.20 as base
WORKDIR /app
RUN apk add --no-cache python3 make g++
RUN rm -rf /var/cache/apk/*
Expand Down
2 changes: 1 addition & 1 deletion services/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"license": "ISC",
"dependencies": {
"@google-cloud/storage": "^7.9.0",
"equipped": "5.0.0-rc.6",
"equipped": "5.0.0-rc.8",
"firebase-admin": "^12.0.0",
"googleapis": "^134.0.0",
"nodemailer": "^6.9.13",
Expand Down
2 changes: 1 addition & 1 deletion services/api/src/application/routes/study/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const filesRoutes = groupRoutes({ path: '/files' }, [
const response = await axios.get(media.link, { baseURL: '', responseType: 'stream' }).catch(() => {
throw new BadRequestError('failed to fetch file')
})
return req.pipe(response.data.pipe)
return req.pipe(response.data, { headers: response.headers as any })
},
},
])

0 comments on commit 92e666c

Please sign in to comment.