feat: added routes to handle whatsapp session

This commit is contained in:
canove
2020-10-26 19:55:07 -03:00
parent 4e9d9f7d15
commit 73cb08a557
13 changed files with 118 additions and 96 deletions

View File

@@ -1,9 +1,7 @@
import Whatsapp from "../../models/Whatsapp";
import AppError from "../../errors/AppError";
const ShowWhatsAppService = async (
id: string | number
): Promise<Whatsapp | undefined> => {
const ShowWhatsAppService = async (id: string | number): Promise<Whatsapp> => {
const whatsapp = await Whatsapp.findByPk(id);
if (!whatsapp) {