From f89db46bf29033a9628d8b6be0d50002c325432b Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Fri, 21 Feb 2020 23:09:42 +0100 Subject: [PATCH] findPlexItemByTitleAndYear returns a promise so we await its response. --- seasoned_api/src/plex/plex.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seasoned_api/src/plex/plex.js b/seasoned_api/src/plex/plex.js index 403d15a..4b5ef09 100644 --- a/seasoned_api/src/plex/plex.js +++ b/seasoned_api/src/plex/plex.js @@ -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 }