Skip to content

Commit

Permalink
feat: makes unit owner optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2sw committed Jul 11, 2022
1 parent 33b56a5 commit 47a4b1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/models/units/units.modeltypes.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ module.exports = {
// Please insert reference to labels table.
unitOwner: {
type: Sequelize.STRING,
required: true,
},
countryJurisdictionOfOwner: {
type: Sequelize.STRING,
Expand Down
2 changes: 1 addition & 1 deletion src/validations/units.validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const unitsBaseSchema = {
// issuanceId - derived upon unit creation
// orgUid - derived upon unit creation
projectLocationId: Joi.string().optional(),
unitOwner: Joi.string().required(),
unitOwner: Joi.string(),
countryJurisdictionOfOwner: Joi.string()
.custom(pickListValidation('countries', 'countryJurisdictionOfOwner'))
.required(),
Expand Down

0 comments on commit 47a4b1a

Please sign in to comment.