Skip to content

Commit 0d0ecdd

Browse files
author
Dushyant Bhalgami
committed
made organizationId optional
1 parent 9fb31c3 commit 0d0ecdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/GroupService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ searchGroups.schema = {
155155
perPage: Joi.perPage(),
156156
oldId: Joi.string(),
157157
ssoId: Joi.string(),
158-
organizationId: Joi.id(),
158+
organizationId: Joi.optionalId(),
159159
selfRegister: Joi.boolean(),
160160
privateGroup: Joi.boolean(),
161161
includeSubGroups: Joi.boolean().default(false),
@@ -229,7 +229,7 @@ createGroup.schema = {
229229
selfRegister: Joi.boolean().required(),
230230
domain: Joi.string(),
231231
ssoId: Joi.string(),
232-
organizationId: Joi.id(),
232+
organizationId: Joi.optionalId(),
233233
status: Joi.string()
234234
.valid([constants.GroupStatus.Active, constants.GroupStatus.InActive])
235235
.default(constants.GroupStatus.Active)

0 commit comments

Comments
 (0)