This repository has been archived by the owner on Jan 19, 2025. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: latest tweets retrieval optimization is unpredictable
`getTweets` does not always return results in a predictable order, which means that the first tweet in not necessarily the latest one. This breaks the synchronization optimization because it relies on this assumption. This fix reverses the implementation for this optimization: instead of preventing the sync when the latest tweet if cached, we prevent the sync by default but allow it to run if we find that *any* of the ${LATEST_TWEETS_COUNT} tweets is not cached.
- Loading branch information