Skip to content

Commit

Permalink
add new items to donationTrackerSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Feb 8, 2024
1 parent 1fd9abe commit 7d42285
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/validators/segmentAndMetadataValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ const donationTrackerSchema = Joi.object({
lastName: Joi.string().allow(null, ''),
projectOwnerId: Joi.string().allow(null, ''),
slug: Joi.string().allow(null, ''),
projectLink: Joi.string().allow(null, ''),
amount: Joi.number()?.greater(0).required(),
token: Joi.string().allow(null, ''),
transactionId: Joi.alternatives().try(
Joi.string().required().pattern(txHashRegex, 'EVM transaction IDs'),
Joi.string().required().pattern(solanaTxRegex, 'Solana Transaction ID'),
),
transactionNetworkId: Joi.number().required(),
transactionLink: Joi.string().allow(null, ''),
currency: Joi.string().required(),
createdAt: Joi.string(),
toWalletAddress: Joi.alternatives().try(
Expand Down

0 comments on commit 7d42285

Please sign in to comment.