From ca78c6d131a68da6ac1cc8577ef8ebd4dc7e9a7b Mon Sep 17 00:00:00 2001 From: Ramin Date: Sun, 25 Feb 2024 15:08:04 +0330 Subject: [PATCH 1/2] rebuild --- src/validators/schemaValidators.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/validators/schemaValidators.ts b/src/validators/schemaValidators.ts index c761f94..3ba478e 100644 --- a/src/validators/schemaValidators.ts +++ b/src/validators/schemaValidators.ts @@ -22,6 +22,7 @@ const throwHttpErrorIfJoiValidatorFails = ( throw error; } }; + export const countUnreadValidator = Joi.object({ walletAddress: Joi.alternatives().try( Joi.string().required().pattern(ethereumWalletAddressRegex), From f5f437b6ee19ae7b054c8bfb3e80f0111e9b9a7b Mon Sep 17 00:00:00 2001 From: Ramin Date: Sun, 25 Feb 2024 15:32:14 +0330 Subject: [PATCH 2/2] stringify error log --- src/adapters/emailAdapter/orttoAdapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapters/emailAdapter/orttoAdapter.ts b/src/adapters/emailAdapter/orttoAdapter.ts index 095d720..dd4e060 100644 --- a/src/adapters/emailAdapter/orttoAdapter.ts +++ b/src/adapters/emailAdapter/orttoAdapter.ts @@ -22,8 +22,8 @@ export class OrttoAdapter implements OrttoAdapterInterface{ await axios.request(config); } catch (e) { logger.error('orttoActivityCall error', { - error: e, - data + error: JSON.stringify(e), + data: JSON.stringify(data) }); } }