Skip to content

Commit

Permalink
fix: modify update stakeholder schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Kpoke committed Apr 18, 2022
1 parent 740a390 commit 02007b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions server/handlers/stakeholderHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,14 @@ const stakeholderDeleteSchema = Joi.object({

const updateStakeholderSchema = Joi.object({
id: Joi.string().uuid().required(),
type: Joi.string(),
email: Joi.string(),
email: Joi.string().email(),
first_name: Joi.string(),
last_name: Joi.string(),
logo_url: Joi.string(),
map: Joi.string(),
org_name: Joi.string(),
phone: Joi.string(),
website: Joi.string().uri(),
}).unknown(false);

const stakeholderGetAll = async (req, res) => {
Expand Down

0 comments on commit 02007b1

Please sign in to comment.