mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 04:09:26 +00:00
✨ searching default whatsapp using user link
This commit is contained in:
@@ -5,7 +5,7 @@ import Ticket from "../models/Ticket";
|
||||
|
||||
const GetTicketWbot = async (ticket: Ticket): Promise<Session> => {
|
||||
if (!ticket.whatsappId) {
|
||||
const defaultWhatsapp = await GetDefaultWhatsApp();
|
||||
const defaultWhatsapp = await GetDefaultWhatsApp(ticket.user.id);
|
||||
|
||||
await ticket.$set("whatsapp", defaultWhatsapp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user