fix proto

This commit is contained in:
sbriat 2023-10-18 12:13:59 +02:00
parent 894a113975
commit 3f50db23fc
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export class UsernameEntity extends AggregateRoot<UsernameProps> {
delete(): void { delete(): void {
this.addEvent( this.addEvent(
new UsernameDeletedDomainEvent({ new UsernameDeletedDomainEvent({
aggregateId: this.id, aggregateId: this.props.name,
}), }),
); );
} }

View File

@ -8,7 +8,7 @@ service AuthenticationService {
rpc AddUsername(UsernameWithId) returns (Id); rpc AddUsername(UsernameWithId) returns (Id);
rpc UpdatePassword(Password) returns (Id); rpc UpdatePassword(Password) returns (Id);
rpc UpdateUsername(UsernameWithId) returns (Id); rpc UpdateUsername(UsernameWithId) returns (Id);
rpc DeleteUsername(Name) returns (Id); rpc DeleteUsername(Name) returns (Empty);
rpc Delete(UserId) returns (Empty); rpc Delete(UserId) returns (Empty);
} }