mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
10 lines
366 B
TypeScript
10 lines
366 B
TypeScript
import { Request, Response } from "express";
|
|
import ImportContactsService from "../services/WbotServices/ImportContactsService";
|
|
|
|
export const store = async (req: Request, res: Response): Promise<Response> => {
|
|
const userId:number = parseInt(req.user.id);
|
|
await ImportContactsService(userId);
|
|
|
|
return res.status(200).json({ message: "contacts imported" });
|
|
};
|