Skip to content

Commit

Permalink
Merge pull request #411 from WeiyuSun/#88_trust_relationship_bug
Browse files Browse the repository at this point in the history
fix: bug fixed
  • Loading branch information
Kpoke authored Aug 27, 2023
2 parents 0354b26 + 8712e20 commit f7950f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/handlers/trustHandler/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const trustPostSchema = Joi.object({
trust_request_type: Joi.string()
.required()
.valid(...Object.keys(TrustRelationshipEnums.ENTITY_TRUST_REQUEST_TYPE)),
requestee_wallet: Joi.string().required(),
requestee_wallet: Joi.string()
.required()
.invalid(Joi.ref('requester_wallet')).messages({
'any.invalid': 'Requester and requestee cannot be same.'
}),
requester_wallet: Joi.string(),
});

Expand Down

0 comments on commit f7950f4

Please sign in to comment.