MurmurationsNetwork / MurmurationsAggregator

Web app that aggregates profiles and displays them on a map and in a directory listing
murmurations-aggregator-git-main-murmurationsnetwork.vercel.app
MIT License
0 stars 0 forks source link

Create cron job to remove deleted profiles #4

Open geoffturk opened 3 years ago

geoffturk commented 3 years ago

The aggregator has no way to know when a profile has been removed from the index, so there needs to be a job that periodically checks to see if any of Firestore's DB of profiles can no longer be found in the index. If not, that profile needs to be removed from Firestore and then deleted from Algolia too, all in one operation so that they remain synchronized.