Skip to content

Commit

Permalink
add userId to project owner changed notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ae2079 committed Aug 6, 2024
1 parent 57d5d92 commit 7b59ec6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/v1/notificationRouter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,7 @@ function sendNotificationTestCases() {
segment: {
payload: {
email: '[email protected]',
userId: 1234,
ownerName: 'Ali',
projectName: 'Test Project',
},
Expand All @@ -2203,6 +2204,7 @@ function sendNotificationTestCases() {
segment: {
payload: {
email: '[email protected]',
userId: 1234,
ownerName: 'Ali',
projectName: 'Test Project',
invalidField: 'invalid data',
Expand Down Expand Up @@ -2237,6 +2239,7 @@ function sendNotificationTestCases() {
segment: {
payload: {
email: '[email protected]',
userId: 1234,
ownerName: 'Ali',
projectName: 'Test Project',
},
Expand Down Expand Up @@ -2264,6 +2267,7 @@ function sendNotificationTestCases() {
payload: {
email: '[email protected]',
ownerName: 'Ali',
userId: 1234,
projectName: 'Test Project',
invalidField: 'invalid data',
},
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 @@ -177,6 +177,7 @@ const notifyRewardAmountSegmentSchema = Joi.object({

const projectOwnershipChangedSegmentSchema = Joi.object({
email: Joi.string().required(),
userId: Joi.number().required(),
ownerName: Joi.string().required(),
projectName: Joi.string().required(),
});
Expand Down

0 comments on commit 7b59ec6

Please sign in to comment.