try to test bypassing mongo
This commit is contained in:
@@ -29,10 +29,10 @@ builder.defineStreamHandler((args) => {
|
|||||||
return Promise.resolve({ streams: [] });
|
return Promise.resolve({ streams: [] });
|
||||||
}
|
}
|
||||||
|
|
||||||
return limiter.schedule(limiterOptions, () => cacheWrapStream(args.id, () => streamHandler(args)
|
return limiter.schedule(limiterOptions, () => streamHandler(args)
|
||||||
.then(records => records
|
.then(records => records
|
||||||
.sort((a, b) => b.torrent.seeders - a.torrent.seeders || b.torrent.uploadDate - a.torrent.uploadDate)
|
.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 => applyFilters(streams, args.extra))
|
||||||
.then(streams => applySorting(streams, args.extra, args.type))
|
.then(streams => applySorting(streams, args.extra, args.type))
|
||||||
.then(streams => applyStaticInfo(streams))
|
.then(streams => applyStaticInfo(streams))
|
||||||
|
|||||||
Reference in New Issue
Block a user