Skip to content

Commit

Permalink
fix: added user id
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlikelyBuddy authored and UnlikelyBuddy committed Apr 12, 2024
1 parent 5860945 commit 4d2fbfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collection/collection.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4d2fbfe

Please sign in to comment.