Merge branch 'fixUserId' into 'main'

Fix user id

See merge request v3/service/user!42
This commit is contained in:
Sylvain Briat 2023-10-10 14:59:01 +00:00
commit aa77a64cd2
4 changed files with 4 additions and 5 deletions

4
package-lock.json generated
View File

@ -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",

View File

@ -1,6 +1,6 @@
{
"name": "@mobicoop/user",
"version": "1.1.0",
"version": "1.1.1",
"description": "Mobicoop V3 User Service",
"author": "sbriat",
"private": true,

View File

@ -12,7 +12,6 @@ export class UserEntity extends AggregateRoot<UserProps> {
const id = create.id ?? v4();
const props: UserProps = { ...create };
const user = new UserEntity({ id, props });
user.addEvent(
new UserCreatedDomainEvent({
aggregateId: id,

View File

@ -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,