diff --git a/package-lock.json b/package-lock.json index 1664a44..9dac247 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mobicoop/user", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mobicoop/user", - "version": "1.1.0", + "version": "1.1.1", "license": "AGPL", "dependencies": { "@grpc/grpc-js": "^1.8.0", diff --git a/package.json b/package.json index 5e23b5f..2dd1c03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mobicoop/user", - "version": "1.1.0", + "version": "1.1.1", "description": "Mobicoop V3 User Service", "author": "sbriat", "private": true, diff --git a/src/modules/user/core/domain/user.entity.ts b/src/modules/user/core/domain/user.entity.ts index 3eb77b2..8978789 100644 --- a/src/modules/user/core/domain/user.entity.ts +++ b/src/modules/user/core/domain/user.entity.ts @@ -12,7 +12,6 @@ export class UserEntity extends AggregateRoot { const id = create.id ?? v4(); const props: UserProps = { ...create }; const user = new UserEntity({ id, props }); - user.addEvent( new UserCreatedDomainEvent({ aggregateId: id, diff --git a/src/modules/user/user.mapper.ts b/src/modules/user/user.mapper.ts index ae6f848..a3ace04 100644 --- a/src/modules/user/user.mapper.ts +++ b/src/modules/user/user.mapper.ts @@ -21,7 +21,7 @@ export class UserMapper toPersistence = (entity: UserEntity): UserWriteModel => { const copy = entity.getProps(); const record: UserWriteModel = { - uuid: copy.id, + uuid: entity.id, firstName: copy.firstName, lastName: copy.lastName, email: copy.email,