refactor: Extract processor job into separate background jobs

This commit is contained in:
Faruk AYDIN
2022-10-13 18:45:01 +02:00
parent 3c3bb82e97
commit 56a9aeece7
17 changed files with 374 additions and 213 deletions

View File

@@ -68,7 +68,9 @@ const searchTweets = async (
return (tweet.raw.id as number) - (nextTweet.raw.id as number);
});
return tweets;
for (const tweet of tweets.data) {
await $.process(tweet);
}
};
export default searchTweets;