We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 770e2e1 commit bca61d0Copy full SHA for bca61d0
fullstack/frontend/src/api.ts
@@ -6,7 +6,7 @@ export const uploadMessage = async (message: string) => {
6
headers: {
7
"Content-Type": "application/json",
8
},
9
- body: message,
+ body: JSON.stringify({ message: message }),
10
});
11
if (!response.ok) {
12
throw "Failed to upload message";
0 commit comments