Message post and get by id + Deps fixed
This commit is contained in:
21
concord-server/src/controller/messageController.ts
Normal file
21
concord-server/src/controller/messageController.ts
Normal 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
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user