updating aws sdk to v3 - createPost now working

This commit is contained in:
Will Baumbach
2025-07-26 16:41:38 -05:00
parent 02d82bbde4
commit 61278967be
8 changed files with 1720 additions and 33 deletions

View File

@@ -35,7 +35,7 @@ export const createPost = async (req, res, next) => {
const aws = new AWSUtil();
// Grab base64 photo from the req body
const {location} = aws.uploadFile(req.body.photo, 'photos');
const location = await aws.uploadFile(req.body.photo);
const payload = {
...req.body,