fix(user-representation): UserRep.addedWho nullable machen, um die Annahme des aktuellen Benutzers durch die API zu ermöglichen
This commit is contained in:
parent
fb3dedadc5
commit
6e5ba82869
@ -64,7 +64,7 @@ export interface UserRep {
|
|||||||
userId?: number,
|
userId?: number,
|
||||||
repGroupId?: number,
|
repGroupId?: number,
|
||||||
groupId?: number,
|
groupId?: number,
|
||||||
addedWho: string,
|
addedWho?: string,
|
||||||
repUser?: User
|
repUser?: User
|
||||||
user?: User,
|
user?: User,
|
||||||
repGroup?: Group,
|
repGroup?: Group,
|
||||||
|
|||||||
@ -100,7 +100,6 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
|||||||
userId: this.slUserId,
|
userId: this.slUserId,
|
||||||
groupId: this.slGroupId,
|
groupId: this.slGroupId,
|
||||||
repUserId: this.slRepUserId,
|
repUserId: this.slRepUserId,
|
||||||
addedWho: 'DEFAULT'
|
|
||||||
}
|
}
|
||||||
this.userRepService.create(newUserRep).subscribe({
|
this.userRepService.create(newUserRep).subscribe({
|
||||||
next: (response) => {
|
next: (response) => {
|
||||||
@ -151,7 +150,6 @@ export class UserRepresentationComponent extends BasePageComponent implements Af
|
|||||||
userId: this.slUserId,
|
userId: this.slUserId,
|
||||||
groupId: this.slGroupId,
|
groupId: this.slGroupId,
|
||||||
repGroupId: this.slRepGroupId,
|
repGroupId: this.slRepGroupId,
|
||||||
addedWho: 'DEFAULT'
|
|
||||||
}
|
}
|
||||||
this.userRepService.create(newUserRep).subscribe({
|
this.userRepService.create(newUserRep).subscribe({
|
||||||
next: (res) => {
|
next: (res) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user