findPlexItemByTitleAndYear returns a promise so we await its response.

This commit is contained in:
2020-02-21 23:09:42 +01:00
parent 085fb76e11
commit f89db46bf2

View File

@@ -93,8 +93,8 @@ class Plex {
return match return match
} }
existsInPlex(tmdb) { async existsInPlex(tmdb) {
const plexMatch = this.findPlexItemByTitleAndYear(tmdb.title, tmdb.year) const plexMatch = await this.findPlexItemByTitleAndYear(tmdb.title, tmdb.year)
return plexMatch ? true : false return plexMatch ? true : false
} }