mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
✨ searching default whatsapp using user link
This commit is contained in:
@@ -15,7 +15,7 @@ const CreateTicketService = async ({
|
||||
status,
|
||||
userId
|
||||
}: Request): Promise<Ticket> => {
|
||||
const defaultWhatsapp = await GetDefaultWhatsApp();
|
||||
const defaultWhatsapp = await GetDefaultWhatsApp(userId);
|
||||
|
||||
await CheckContactOpenTickets(contactId);
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import { getWbot } from "../../libs/wbot";
|
||||
import Contact from "../../models/Contact";
|
||||
import { logger } from "../../utils/logger";
|
||||
|
||||
const ImportContactsService = async (): Promise<void> => {
|
||||
const defaultWhatsapp = await GetDefaultWhatsApp();
|
||||
const ImportContactsService = async (userId:number): Promise<void> => {
|
||||
const defaultWhatsapp = await GetDefaultWhatsApp(userId);
|
||||
|
||||
const wbot = getWbot(defaultWhatsapp.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user