fix(replication): show correct torrent types on replication

This commit is contained in:
Alexey Kasyanchuk 2018-03-31 10:23:04 +03:00
parent 4e82acf149
commit 6215c0ed60

View File

@ -447,6 +447,18 @@ const insertTorrentToDB = (torrent) => {
if(!torrent)
return
// fix cases for low cases letters
if(torrent.contentcategory)
{
torrent.contentCategory = torrent.contentcategory;
delete torrent.contentcategory;
}
if(torrent.contenttype)
{
torrent.contentType = torrent.contenttype;
delete torrent.contenttype;
}
const { filesList } = torrent
delete torrent.filesList;