Skip to content

Commit

Permalink
Merge pull request #43 from cap-js/s3clientfix
Browse files Browse the repository at this point in the history
reusing s3 client
  • Loading branch information
RamIndia authored Apr 4, 2024
2 parents 092d7ff + 1878cb5 commit 3073976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws-s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = class AWSAttachmentsService extends require("./basic") {
};
try {
const multipartUpload = new Upload({
client: new S3Client({}),
client: this.client,
params: input,
});
// TODO: add malware scan
Expand Down Expand Up @@ -101,7 +101,7 @@ module.exports = class AWSAttachmentsService extends require("./basic") {
Body: req.data.content,
};
const multipartUpload = new Upload({
client: new S3Client({}),
client: this.client,
params: input,
});
// TODO: add malware scan
Expand Down

0 comments on commit 3073976

Please sign in to comment.