update service
This commit is contained in:
parent
6cb5535a09
commit
17de7c0645
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue