summaryrefslogtreecommitdiff
path: root/hi-ui/src/apiServer.js
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-09 11:55:59 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-09 11:55:59 -0400
commitf624a6a49c7a924cbaae41b3f73ee3fa655c459e (patch)
tree31b802183c44edb6ba8bd9c50bff8c36d7bf39f9 /hi-ui/src/apiServer.js
parentfecc78192ff1ad83c6a2f41e35a65ac189d25c6f (diff)
Align send request fields with message fields by renaming `message` to `body`.
Diffstat (limited to 'hi-ui/src/apiServer.js')
-rw-r--r--hi-ui/src/apiServer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/hi-ui/src/apiServer.js b/hi-ui/src/apiServer.js
index 3aa3f1b..57f1d8c 100644
--- a/hi-ui/src/apiServer.js
+++ b/hi-ui/src/apiServer.js
@@ -25,8 +25,8 @@ export async function createChannel(name) {
return apiServer.post('/channels', { name });
}
-export async function postToChannel(channelId, message) {
- return apiServer.post(`/channels/${channelId}`, { message });
+export async function postToChannel(channelId, body) {
+ return apiServer.post(`/channels/${channelId}`, { body });
}
export async function deleteMessage(messageId) {