improvement: error handling on contact creation

This commit is contained in:
canove
2020-09-24 13:49:38 -03:00
parent e6641bde39
commit 34a99ade2d
3 changed files with 7 additions and 4 deletions

View File

@@ -28,8 +28,6 @@ const CreateContactService = async ({
throw new AppError("A contact with this number already exists.");
}
console.log("extra", extraInfo);
const contact = await Contact.create(
{
name,