Get up to 50 messages before ISO 8601 timestamp

This commit is contained in:
Kevin Puig
2025-09-27 19:37:56 -04:00
parent 74d0c502f3
commit 9b46852e20
4 changed files with 117 additions and 3 deletions

View File

@@ -1,9 +1,13 @@
import { getMessageInformation, sendMessageToChannel } from "../services/messageService";
import { getMessageInformation, getMessagesBefore, sendMessageToChannel } from "../services/messageService";
export async function fetchMessageData(id:string) {
return await getMessageInformation(id);
}
export async function fetchMessagesBefore(date:string, channelId:string) {
return getMessagesBefore(date, channelId);
}
export async function sendMessage(
channelId: string,
userId: string,