fix(torrent): fix adding torrent for new manticore version (duplicate field)

thanks to:
#184
This commit is contained in:
Alexey Kasyanchuk 2023-05-21 02:58:56 +03:00
parent e2eed076de
commit cebb462c53

View File

@ -645,6 +645,7 @@ module.exports = function (send, recive, dataDirectory, version, env)
addFilesToDatabase()
}
delete torrent.nameindex;
torrent.nameIndex = buildTorrentIndex(torrent)
sphinxSingle.insertValues('torrents', torrent, function(err, result) {