From 4d2fbfeb2f6dcedb8144ce3237d9b20c8f365346 Mon Sep 17 00:00:00 2001 From: UnlikelyBuddy Date: Fri, 12 Apr 2024 14:44:45 +0200 Subject: [PATCH] fix: added user id --- src/collection/collection.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/collection/collection.service.ts b/src/collection/collection.service.ts index 80685b7..4fd8964 100644 --- a/src/collection/collection.service.ts +++ b/src/collection/collection.service.ts @@ -301,6 +301,7 @@ export class CollectionService { pictoIds: await Promise.all(collection.pictos.map(picto => this.copyPictotransaction(collection.id, picto, user, entityManager))), fatherCollectionId: fatherId, share: 0, + userId: user.id, }; const copiedCollection = await entityManager.save(Collection, createCollectionDto); return copiedCollection.id; @@ -322,6 +323,7 @@ export class CollectionService { fatherCollectionId: fatherId, share: 1, pictohubId: null, + userId: user.id, }; const copiedPicto = await entityManager.save(Picto, createPictoDto); return copiedPicto.id;