Improved testing, more linting and added paging to request/all endpoint #95

Merged
KevinMidboe merged 9 commits from docs_testing into master 2018-03-21 22:53:30 +00:00
Showing only changes of commit 42b8b5ea0e - Show all commits

View File

@@ -37,7 +37,7 @@ class TMDB {
const cacheKey = `${this.cacheTags.info}:${type}:${identifier}`;
return Promise.resolve()
.then(() => this.cache.get(cacheKey))
.catch(() => this.tmdb(TMDB_METHODS['info'][type]), query))
.catch(() => this.tmdb(TMDB_METHODS['info'][type], query))
.catch(() => { throw new Error('Could not find a movie with that id.'); })
.then(response => this.cache.set(cacheKey, response))
.then((response) => {