From 18ede29ea544000abd9bffdfa35d82a62b6733a4 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 20 Dec 2020 17:37:20 +0100 Subject: [PATCH] Moved usergroups to the new put mechanism ref #39 --- src/controllers/UserGroupController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/UserGroupController.ts b/src/controllers/UserGroupController.ts index 3297f50..ea3ab16 100644 --- a/src/controllers/UserGroupController.ts +++ b/src/controllers/UserGroupController.ts @@ -73,7 +73,7 @@ export class UserGroupController { throw new UserGroupIdsNotMatchingError(); } - await this.userGroupsRepository.update(oldUserGroup, userGroup); + await this.userGroupsRepository.save(userGroup); return userGroup; }