Skip to content

Commit d269517

Browse files
Fix group patch
1 parent 1fbef3c commit d269517

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/GroupService.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ updateGroup.schema = {
308308
* @returns {Object} the updated group
309309
*/
310310
async function patchGroup(currentUser, groupId, data) {
311+
if (!data.oldId) {
312+
throw new error.BadRequestError('Can not Patch without oldId')
313+
}
311314
const session = helper.createDBSession()
312315
const tx = session.beginTransaction()
313316
try {

0 commit comments

Comments
 (0)