PR updates
PR updates fix failing test
This commit is contained in:
@@ -240,7 +240,7 @@ export class AwsS3Publish implements PublisherBase {
|
||||
res.setHeader(headerKey, headerValue);
|
||||
}
|
||||
|
||||
res.json(await streamToBuffer(stream));
|
||||
res.send(await streamToBuffer(stream));
|
||||
} catch (err) {
|
||||
this.logger.warn(err.message);
|
||||
res.status(404).json(err.message);
|
||||
|
||||
@@ -253,7 +253,7 @@ export class AzureBlobStoragePublish implements PublisherBase {
|
||||
)) {
|
||||
res.setHeader(headerKey, headerValue);
|
||||
}
|
||||
res.json(fileContent);
|
||||
res.send(fileContent);
|
||||
});
|
||||
} catch (e) {
|
||||
this.logger.error(e.message);
|
||||
|
||||
Reference in New Issue
Block a user