Now throwing errors

This commit is contained in:
2020-12-09 18:59:01 +01:00
parent af1ad482d4
commit 77b769446f
7 changed files with 7 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ export class UserGroupController {
try {
userGroup = await createUserGroup.toUserGroup();
} catch (error) {
return error;
throw error;
}
return this.userGroupsRepository.save(userGroup);