refactor(UserRepCreateDto): Die Eigenschaften validFrom und validTo wurden zu not-null.

This commit is contained in:
Developer 02 2024-11-08 10:17:43 +01:00
parent c73b299e3e
commit 36c55b6382
2 changed files with 4 additions and 2 deletions

View File

@ -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) => {

View File

@ -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();
} }