From 3f50db23fc707ef4b5298b5ea54ada15b5a77e06 Mon Sep 17 00:00:00 2001 From: sbriat Date: Wed, 18 Oct 2023 12:13:59 +0200 Subject: [PATCH] fix proto --- src/modules/authentication/core/domain/username.entity.ts | 2 +- .../interface/grpc-controllers/authentication.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/authentication/core/domain/username.entity.ts b/src/modules/authentication/core/domain/username.entity.ts index e9cd325..287c351 100644 --- a/src/modules/authentication/core/domain/username.entity.ts +++ b/src/modules/authentication/core/domain/username.entity.ts @@ -41,7 +41,7 @@ export class UsernameEntity extends AggregateRoot { delete(): void { this.addEvent( new UsernameDeletedDomainEvent({ - aggregateId: this.id, + aggregateId: this.props.name, }), ); } diff --git a/src/modules/authentication/interface/grpc-controllers/authentication.proto b/src/modules/authentication/interface/grpc-controllers/authentication.proto index 519eb56..645be84 100644 --- a/src/modules/authentication/interface/grpc-controllers/authentication.proto +++ b/src/modules/authentication/interface/grpc-controllers/authentication.proto @@ -8,7 +8,7 @@ service AuthenticationService { rpc AddUsername(UsernameWithId) returns (Id); rpc UpdatePassword(Password) returns (Id); rpc UpdateUsername(UsernameWithId) returns (Id); - rpc DeleteUsername(Name) returns (Id); + rpc DeleteUsername(Name) returns (Empty); rpc Delete(UserId) returns (Empty); }