Skip to content

Commit

Permalink
fix: remove storage path exposition (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet authored Oct 22, 2024
1 parent 6fb4a00 commit 9455f5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/api/tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ const plugin: FastifyPluginAsyncTypebox = async (fastify) => {
consumes: ['multipart/form-data'],
response: {
200: Type.Object({
path: Type.String(),
message: Type.String()
}),
404: Type.Object({ message: Type.String() }),
Expand Down Expand Up @@ -265,7 +264,7 @@ const plugin: FastifyPluginAsyncTypebox = async (fastify) => {
.where({ id })
.update({ filename })

return { path: filePath, message: 'File uploaded successfully' }
return { message: 'File uploaded successfully' }
}).catch(() => {
reply.internalServerError('Transaction failed.')
})
Expand Down

0 comments on commit 9455f5c

Please sign in to comment.