refactor(UserRepCreateDto): Die Eigenschaften validFrom und validTo wurden zu not-null.
This commit is contained in:
parent
c73b299e3e
commit
36c55b6382
@ -100,6 +100,8 @@ 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,
|
||||||
|
validFrom: new Date(),
|
||||||
|
validTo: new Date(new Date().setDate(new Date().getDate() + 7)) //after one week
|
||||||
}
|
}
|
||||||
this.userRepService.create(newUserRep).subscribe({
|
this.userRepService.create(newUserRep).subscribe({
|
||||||
next: (response) => {
|
next: (response) => {
|
||||||
|
|||||||
@ -7,7 +7,7 @@ namespace DigitalData.UserManager.Application.DTOs.UserRep
|
|||||||
int? RepGroupId,
|
int? RepGroupId,
|
||||||
int? GroupId,
|
int? GroupId,
|
||||||
int? RepUserId,
|
int? RepUserId,
|
||||||
DateTime? ValidFrom,
|
DateTime ValidFrom,
|
||||||
DateTime? ValidTo
|
DateTime ValidTo
|
||||||
) : BaseCreateDto();
|
) : BaseCreateDto();
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user