mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
add validation to whatsapp name
This commit is contained in:
@@ -17,15 +17,13 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
|
||||
|
||||
interface WhatsappData {
|
||||
name: string;
|
||||
status: string;
|
||||
status?: string;
|
||||
isDefault?: boolean;
|
||||
}
|
||||
|
||||
export const store = async (req: Request, res: Response): Promise<Response> => {
|
||||
// const io = getIO();
|
||||
|
||||
console.log("aqui");
|
||||
|
||||
const { name, status, isDefault }: WhatsappData = req.body;
|
||||
|
||||
const whatsapp = await CreateWhatsAppService({ name, status, isDefault });
|
||||
|
||||
Reference in New Issue
Block a user