1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

updatedAt on import

Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
mrjvs 2023-12-06 21:19:36 +01:00
parent 8015ec5a92
commit cb13ca72b2

View file

@ -19,6 +19,7 @@ export interface ProgressInput {
episodeId?: string;
seasonNumber?: number;
episodeNumber?: number;
updatedAt?: string;
}
export function progressUpdateItemToInput(
@ -60,6 +61,7 @@ export function progressMediaItemToInputs(
seasonId: episode.seasonId,
episodeNumber: episode.number,
seasonNumber: item.seasons[episode.seasonId].number,
updatedAt: new Date(episode.updatedAt).toISOString(),
}));
}
return [
@ -67,6 +69,7 @@ export function progressMediaItemToInputs(
duration: item.progress?.duration ?? 0,
watched: item.progress?.watched ?? 0,
tmdbId,
updatedAt: new Date(item.updatedAt).toISOString(),
meta: {
title: item.title ?? "",
type: item.type ?? "",