updating aws sdk to v3 - createPost now working
This commit is contained in:
@@ -11,7 +11,7 @@ export default function App() {
|
||||
if (cameraRef.current) {
|
||||
const pic = await cameraRef.current.takePictureAsync()
|
||||
setPhoto(pic.base64 || '');
|
||||
console.log(pic);
|
||||
console.log(pic.base64);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export default function App() {
|
||||
const response = await fetch("localhost:3000/api/v1/posts", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
user: '6883ddb2640ebaa1a12e3791',
|
||||
userID: '6883ddb2640ebaa1a12e3791',
|
||||
date: new Date(),
|
||||
photo: photo,
|
||||
notes: '3333 W Smoochie St'
|
||||
|
||||
Reference in New Issue
Block a user