Skip to content

Commit

Permalink
User Story - Rejected project owner reason
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Jun 25, 2024
1 parent 870e498 commit 3b096fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/notificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/utils/validators/segmentAndMetadataValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, ''),
});
Expand Down
3 changes: 3 additions & 0 deletions src/validators/schemaValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export const sendNotificationValidator = Joi.object({
userId: Joi.number(),
projectLink: Joi.string().allow(null).allow(''),

// Verification form
verificationRejectedReason: Joi.string().allow(null, ''),

// Donation related attributes
amount: Joi.number(),
token: Joi.string().allow(null, ''),
Expand Down

0 comments on commit 3b096fd

Please sign in to comment.