add: update modal for entry seen
This commit is contained in:
1 parent
d6c3a974a1
commit
bffc1227c3
8 files changed
+208
-81
No files matched your search
@@ -515,7 +515,10 @@ async function refrechEntry(entryId) {
|
||||
if (oldEntry.is_tvseries) includes.push({ model: Season, as: 'seasons' });
|
||||
|
||||
const updatedEntry = await Entry.findByPk(entryId, {
|
||||
include: includes
|
||||
include: includes,
|
||||
order: [
|
||||
[{ model: EntrySeen, as: 'entrySeen' }, 'date_seen', 'DESC'] // Order the entry-seen list
|
||||
]
|
||||
});
|
||||
|
||||
const entryData = updatedEntry.get({ plain: true });
|
||||
|
||||
Reference in new issue
Block a user