update service

This commit is contained in:
Admin 2025-08-07 13:33:43 +07:00
parent 6cb5535a09
commit 17de7c0645
3 changed files with 13 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -17,17 +17,15 @@ class TypingService {
): Promise<{ status: boolean; typed: string } | null> {
if (!this.axios) return null;
// const { data } = await this.axios({
// method: "POST",
// url: "type",
// data: {
// message,
// },
// });
const { data } = await this.axios({
method: "POST",
url: "type",
data: {
message,
},
});
// return data;
return { status: true, typed: message };
return data;
}
}

View File

@ -53,11 +53,9 @@ export class ConversationsService {
});
try {
const data = await this.event.waitForEvent<CreateMessageDto[]>(
await this.event.waitForEvent<CreateMessageDto[]>(
MessagesEventService.LOCAL_EVENTS.RECEIVE_CONVERSATION,
);
await this.messageService.bulkCreate(data);
} catch (error) {
console.log(error);
}