updating aws sdk to v3 - createPost now working
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user