i have a firestore db with a users collection and a recommendations collection
my users collection looks something like this: users (name: String, email: String)
my recommendations collection looks something like this: recommendations (someRandomData: Array, dateLastUpdated: Date, userId: String)
Each user can only have 1 document in the recommendation collection, and the recommendation collection is intilaized when the user creates an account
the date last updated field in the recommended field is stored as YYYY-MM-DD format eg, 2022-05-26
Basically i want to write a cloud function which is able to trigger 24hours from whatever the time in the dateLastUpdated field is and update the someRandomData field, and then update the dateLastUpdated field
so the function is meant to monitor every recommendation document and thier individual dates and update each of them once its been 24h since the dateLastUpdated field