fix(user-representation): UserRep.addedWho nullable machen, um die Annahme des aktuellen Benutzers durch die API zu ermöglichen

This commit is contained in:
Developer 02 2024-11-06 16:26:21 +01:00
parent fb3dedadc5
commit 6e5ba82869
2 changed files with 1 additions and 3 deletions

View File

@ -64,7 +64,7 @@ export interface UserRep {
userId?: number,
repGroupId?: number,
groupId?: number,
addedWho: string,
addedWho?: string,
repUser?: User
user?: User,
repGroup?: Group,

View File

@ -100,7 +100,6 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
userId: this.slUserId,
groupId: this.slGroupId,
repUserId: this.slRepUserId,
addedWho: 'DEFAULT'
}
this.userRepService.create(newUserRep).subscribe({
next: (response) => {
@ -151,7 +150,6 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
userId: this.slUserId,
groupId: this.slGroupId,
repGroupId: this.slRepGroupId,
addedWho: 'DEFAULT'
}
this.userRepService.create(newUserRep).subscribe({
next: (res) => {