Closed kedaroh-bh closed 2 months ago
There should if-else ladder, in case of 'database' storage it is going in 'database' and default condition
https://github.com/drodil/backstage-plugin-qeta/blob/main/plugins/qeta-backend/src/service/routes/attachments.ts#L85
As it is returning response twice, hence receiving unhandled error "Unhandled rejection Cannot set headers after they are sent to the client"
Good catch, I will make a fix!
There should if-else ladder, in case of 'database' storage it is going in 'database' and default condition
https://github.com/drodil/backstage-plugin-qeta/blob/main/plugins/qeta-backend/src/service/routes/attachments.ts#L85
As it is returning response twice, hence receiving unhandled error "Unhandled rejection Cannot set headers after they are sent to the client"