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

@@ -0,0 +1,5 @@
import { Entry } from '../entry.model';
export interface CollectionEntry extends Entry {
order: number;
}
@@ -1,4 +1,4 @@
import { Entry } from './entry.model';
import { CollectionEntry } from './dtos/collection-entry.dto';
import { UserCollectionEntry } from './userCollectionEntry.model';
export interface UserCollection {
@@ -11,7 +11,7 @@ export interface UserCollection {
poster_path: string;
userCollectionEntries: UserCollectionEntry[];
entries: Entry[];
entries: CollectionEntry[];
changed: boolean;
isChecked: boolean;