Changed more instances of tmdb to new TMDB constructor not needing cache instance anymore.

This commit is contained in:
2020-04-08 22:59:23 +02:00
parent 815aaedffb
commit 776f83553a
4 changed files with 4 additions and 13 deletions

View File

@@ -1,9 +1,7 @@
const configuration = require('src/config/configuration').getInstance();
const Cache = require('src/tmdb/cache');
const TMDB = require('src/tmdb/tmdb');
const RequestRepository = require('src/request/request');
const cache = new Cache();
const tmdb = new TMDB(cache, configuration.get('tmdb', 'apiKey'));
const tmdb = new TMDB(configuration.get('tmdb', 'apiKey'));
const request = new RequestRepository();
const tmdbMovieInfo = (id) => {