Skip to content

Commit

Permalink
Merge pull request #102 from Giveth/User-Story---Rejected-project-own…
Browse files Browse the repository at this point in the history
…er-reason

User Story - Rejected project owner reason
  • Loading branch information
RamRamez authored Jul 1, 2024
2 parents cfec49d + 1fda316 commit 06353a9
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 @@ -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, ''),
Expand Down

0 comments on commit 06353a9

Please sign in to comment.