Correção no codigo para funcionamento do AutoRestore quando o status da conexão estiver no status Pending

pull/21/head
adriano 2022-12-22 09:15:30 -03:00
parent 46da991216
commit ab1c89631e
2 changed files with 11 additions and 11 deletions

View File

@ -90,7 +90,7 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
try {
await schema.validate(newContact);
} catch (err) {
} catch (err: any) {
throw new AppError(err.message);
}
@ -145,7 +145,7 @@ export const update = async (
try {
await schema.validate(contactData);
} catch (err) {
} catch (err: any) {
throw new AppError(err.message);
}