mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-21 16:51:57 +00:00
small fix
This commit is contained in:
parent
af138944b5
commit
ebbe715581
1 changed files with 4 additions and 2 deletions
|
|
@ -1106,6 +1106,7 @@ export class TraktService {
|
|||
`/sync/history/movies/${imdbId}?limit=1`
|
||||
);
|
||||
|
||||
const history = response.data;
|
||||
return Array.isArray(history) && history.length > 0;
|
||||
} catch {
|
||||
return false;
|
||||
|
|
@ -1123,6 +1124,7 @@ export class TraktService {
|
|||
{ params: { limit: 20 } }
|
||||
);
|
||||
|
||||
const history = response.data;
|
||||
if (!Array.isArray(history)) return false;
|
||||
|
||||
for (const entry of history) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue