mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
✨ searching default whatsapp using user link
This commit is contained in:
@@ -2,7 +2,8 @@ import { Request, Response } from "express";
|
||||
import ImportContactsService from "../services/WbotServices/ImportContactsService";
|
||||
|
||||
export const store = async (req: Request, res: Response): Promise<Response> => {
|
||||
await ImportContactsService();
|
||||
const userId:number = parseInt(req.user.id);
|
||||
await ImportContactsService(userId);
|
||||
|
||||
return res.status(200).json({ message: "contacts imported" });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user