diff --git a/src/services/notificationService.ts b/src/services/notificationService.ts index 13d0458..73cee67 100644 --- a/src/services/notificationService.ts +++ b/src/services/notificationService.ts @@ -126,6 +126,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES "str:cm:email": payload.email, "str:cm:projectlink": payload.projectLink, "str:cm:verified-status": 'rejected', + "txt:cm:reason": payload.verificationRejectedReason, "str:cm:userid": payload.userId?.toString(), }; break diff --git a/src/utils/validators/segmentAndMetadataValidators.ts b/src/utils/validators/segmentAndMetadataValidators.ts index 8f42340..a7b8b9c 100644 --- a/src/utils/validators/segmentAndMetadataValidators.ts +++ b/src/utils/validators/segmentAndMetadataValidators.ts @@ -30,6 +30,7 @@ const projectRelatedTrackerSchema = Joi.object({ slug: Joi.string().required(), projectLink: Joi.string().allow(null).allow(''), + verificationRejectedReason: Joi.string().allow(null, ''), // it's for project updates update: Joi.string().allow(null, ''), }); diff --git a/src/validators/schemaValidators.ts b/src/validators/schemaValidators.ts index afa687e..dee0df5 100644 --- a/src/validators/schemaValidators.ts +++ b/src/validators/schemaValidators.ts @@ -63,6 +63,9 @@ export const sendNotificationValidator = Joi.object({ // Email confirmation verificationLink: Joi.string().allow(null).allow(''), + // Verification form + verificationRejectedReason: Joi.string().allow(null, ''), + // Donation related attributes amount: Joi.number(), token: Joi.string().allow(null, ''),