From e7c85c877694c37541cab466ea81c5141c0b1290 Mon Sep 17 00:00:00 2001 From: Ramin Date: Thu, 9 May 2024 02:05:20 +0330 Subject: [PATCH] remove projectOwnerId --- src/routes/v1/notificationRouter.test.ts | 4 ---- src/utils/validators/segmentAndMetadataValidators.ts | 1 - src/validators/schemaValidators.ts | 1 - 3 files changed, 6 deletions(-) diff --git a/src/routes/v1/notificationRouter.test.ts b/src/routes/v1/notificationRouter.test.ts index 5d8021d..387c745 100644 --- a/src/routes/v1/notificationRouter.test.ts +++ b/src/routes/v1/notificationRouter.test.ts @@ -1387,7 +1387,6 @@ function sendNotificationTestCases() { email: 'test@giveth.com', title: 'How many photos is too many photos?', firstName: 'firstName', - projectOwnerId: '68', slug: 'how-many-photos-is-too-many-photos', amount: 0.0001, transactionId: generateRandomTxHash(), @@ -1428,7 +1427,6 @@ function sendNotificationTestCases() { email: 'test@giveth.com', title: 'How many photos is too many photos?', firstName: 'firstName', - projectOwnerId: '68', slug: 'how-many-photos-is-too-many-photos', amount: 0.0001, transactionId: generateRandomTxHash(), @@ -1497,7 +1495,6 @@ function sendNotificationTestCases() { email: 'test@giveth.com', title: 'How many photos is too many photos?', firstName: 'firstName', - projectOwnerId: '68', slug: 'how-many-photos-is-too-many-photos', amount: 0.0001, transactionId: generateRandomTxHash(), @@ -1538,7 +1535,6 @@ function sendNotificationTestCases() { email: 'test@giveth.com', title: 'How many photos is too many photos?', firstName: 'firstName', - projectOwnerId: '68', slug: 'how-many-photos-is-too-many-photos', amount: 0.0001, transactionId: generateRandomTxHash(), diff --git a/src/utils/validators/segmentAndMetadataValidators.ts b/src/utils/validators/segmentAndMetadataValidators.ts index 4931ff6..c932ca1 100644 --- a/src/utils/validators/segmentAndMetadataValidators.ts +++ b/src/utils/validators/segmentAndMetadataValidators.ts @@ -67,7 +67,6 @@ const donationTrackerSchema = Joi.object({ firstName: Joi.string().allow(null, ''), lastName: Joi.string().allow(null, ''), userId: Joi.number(), - projectOwnerId: Joi.string().allow(null, ''), slug: Joi.string().allow(null, ''), projectLink: Joi.string().allow(null, ''), amount: Joi.number()?.greater(0).required(), diff --git a/src/validators/schemaValidators.ts b/src/validators/schemaValidators.ts index 1eb9aab..7540433 100644 --- a/src/validators/schemaValidators.ts +++ b/src/validators/schemaValidators.ts @@ -61,7 +61,6 @@ export const sendNotificationValidator = Joi.object({ projectLink: Joi.string().allow(null).allow(''), // Donation related attributes - projectOwnerId: Joi.string(), amount: Joi.number(), token: Joi.string().allow(null, ''), transactionId: Joi.string(),