From f624a6a49c7a924cbaae41b3f73ee3fa655c459e Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 9 Oct 2024 11:55:59 -0400 Subject: Align send request fields with message fields by renaming `message` to `body`. --- hi-ui/src/apiServer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hi-ui') 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) { -- cgit v1.2.3