Updated the put methods and cleaned up a shitload of comments #42

Merged
niggl merged 32 commits from feature/39-update_puts into dev 2020-12-21 16:39:21 +00:00
Showing only changes of commit adec2bcc5b - Show all commits

View File

@ -73,9 +73,6 @@ export class UserController {
@OpenAPI({ description: "Update a user object (id can't be changed)." })
async put(@Param('id') id: number, @Body({ validate: true }) updateUser: UpdateUser) {
let oldUser = await this.userRepository.findOne({ id: id });
delete oldUser.permissions;
delete oldUser.groups;
delete oldUser.actions;
if (!oldUser) {
throw new UserNotFoundError();