changed find to show services

This commit is contained in:
canove
2020-09-20 11:27:58 -03:00
parent 4fda0b18c6
commit 02d90af657
13 changed files with 40 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
import Whatsapp from "../../models/Whatsapp";
import AppError from "../../errors/AppError";
const FindWhatsAppService = async (
const ShowWhatsAppService = async (
id: string | number
): Promise<Whatsapp | undefined> => {
const whatsapp = await Whatsapp.findByPk(id);
@@ -13,4 +13,4 @@ const FindWhatsAppService = async (
return whatsapp;
};
export default FindWhatsAppService;
export default ShowWhatsAppService;