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
}
existsInPlex(tmdb) {
const plexMatch = this.findPlexItemByTitleAndYear(tmdb.title, tmdb.year)
async existsInPlex(tmdb) {
const plexMatch = await this.findPlexItemByTitleAndYear(tmdb.title, tmdb.year)
return plexMatch ? true : false
}