Skip to content

Commit b4c9d8a

Browse files
Merge pull request #138 from topcoder-platform/fix-patch-method
Fix patch method
2 parents 1fbef3c + 2ff2fd7 commit b4c9d8a

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
@@ -354,9 +354,9 @@ async function patchGroup(currentUser, groupId, data) {
354354
patchGroup.schema = {
355355
currentUser: Joi.any(),
356356
groupId: Joi.string(), // defined in app-bootstrap
357-
data: Joi.object()
357+
data: Joi.object().required()
358358
.keys({
359-
oldId: Joi.string(),
359+
oldId: Joi.string().required(),
360360
})
361361
}
362362

0 commit comments

Comments
 (0)