This commit is contained in:
wryk 2020-03-06 17:54:58 +01:00
parent 1f866e370d
commit 1fa83eadaa
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ export async function* hashtagsTimelineIterator (domain, hashtags) {
.filter(({ result }) => !result.done) .filter(({ result }) => !result.done)
if (results.length > 0) { if (results.length > 0) {
const sorted = results.sort((a, b) => b.result.value.referer.date - a.result.value.referrer.date) const sorted = results.sort((a, b) => b.result.value.referer.date - a.result.value.referer.date)
const { index, result: { value } } = sorted[0] const { index, result: { value } } = sorted[0]
promises[index] = iterators[index].next() promises[index] = iterators[index].next()