try to disable remote mongo cache

This commit is contained in:
TheBeastLT
2023-02-26 09:01:37 +01:00
parent d50acf1f28
commit bd00282e64
2 changed files with 5 additions and 5 deletions

View File

@@ -27,10 +27,10 @@ builder.defineStreamHandler((args) => {
return Promise.resolve({ streams: [] });
}
return cacheWrapStream(args.id, () => limiter.schedule(() => streamHandler(args)
return limiter.schedule(() => streamHandler(args)
.then(records => records
.sort((a, b) => b.torrent.seeders - a.torrent.seeders || b.torrent.uploadDate - a.torrent.uploadDate)
.map(record => toStreamInfo(record)))))
.map(record => toStreamInfo(record))))
.then(streams => applyFilters(streams, args.extra))
.then(streams => applySorting(streams, args.extra))
.then(streams => applyStaticInfo(streams))