Skip to content

Commit

Permalink
feat: add await to s3Client
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleryy committed May 18, 2024
1 parent 951d6f9 commit 488c2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/functions/src/routes/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ uploadRouter.post("/image", async (req, res) => {

const uploadCommand = new PutObjectCommand(uploadParams);

s3Client.send(uploadCommand);
await s3Client.send(uploadCommand);

// const url = await getSignedUrl(s3Client, getCommand, { expiresIn: 3600 });
const url = `https://${Bucket.bucket.bucketName}.s3.amazonaws.com/${key}`;
Expand Down

0 comments on commit 488c2ce

Please sign in to comment.