fix(replication): show correct torrent types on replication
This commit is contained in:
parent
4e82acf149
commit
6215c0ed60
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user