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) }); } } 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),