updates addon to a working state

This commit is contained in:
TheBeastLT
2020-03-11 15:05:09 +01:00
parent a2ea880cb6
commit 2acc9a7f2d
9 changed files with 168 additions and 23 deletions

View File

@@ -40,7 +40,7 @@ const File = database.define('file',
);
Torrent.hasMany(File, { foreignKey: 'infoHash', constraints: false });
File.belongsTo(Torrent, { constraints: false });
File.belongsTo(Torrent, { foreignKey: 'infoHash', constraints: false });
function getImdbIdMovieEntries(imdbId) {
return File.findAll({