small fix

This commit is contained in:
chrisk325 2026-01-03 18:52:53 +05:30 committed by GitHub
parent af138944b5
commit ebbe715581
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {