Message post and get by id + Deps fixed

This commit is contained in:
Kevin Puig
2025-09-27 18:47:34 -04:00
parent da1310b9c8
commit 0ee3984262
11 changed files with 343 additions and 132 deletions

View File

@@ -0,0 +1,21 @@
import { getMessageInformation, sendMessageToChannel } from "../services/messageService";
export async function fetchMessageData(id:string) {
return await getMessageInformation(id);
}
export async function sendMessage(
channelId: string,
userId: string,
content: string,
token: string,
repliedMessageId: string | null
) {
return await sendMessageToChannel(
channelId,
userId,
content,
token,
repliedMessageId
);
}