implemented hooks for user-collections & user-collection-entry models to update updatedAt and order fields

This commit is contained in:
X4Lo committed 2024-04-30 22:21:17 +01:00
1 parent 36866dabe6
commit cea1b207a3
12 files changed
+170 -61

No files matched your search

@@ -124,11 +124,7 @@ export class UserCollectionsModalComponent implements OnInit {
`Adding Entry ${this.entryId} to list: ${userCollection.name}`
);
this.listService
.addEntryToCollection(
userCollection.id,
this.entryId,
userCollection.userCollectionEntries.length + 1
)
.addEntryToCollection(userCollection.id, this.entryId)
.subscribe({
next: (response) => {
console.log('Successfuly added Entry To Collection:', response);