From 3f50db23fc707ef4b5298b5ea54ada15b5a77e06 Mon Sep 17 00:00:00 2001 From: sbriat Date: Wed, 18 Oct 2023 12:13:59 +0200 Subject: [PATCH 1/2] 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); } From b236c81b6b4760e33ed2a7030444d4cd22aedb1f Mon Sep 17 00:00:00 2001 From: sbriat Date: Wed, 18 Oct 2023 12:14:06 +0200 Subject: [PATCH 2/2] 0.6.3 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1e06f8a..54d6718 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mobicoop/auth", - "version": "0.6.2", + "version": "0.6.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mobicoop/auth", - "version": "0.6.2", + "version": "0.6.3", "license": "AGPL", "dependencies": { "@golevelup/nestjs-rabbitmq": "^4.0.0", diff --git a/package.json b/package.json index 49e7865..eb0421e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mobicoop/auth", - "version": "0.6.2", + "version": "0.6.3", "description": "Mobicoop V3 Auth Service", "author": "sbriat", "private": true,