0

I have an firebase firestore database where stored information about bets.

I haven't any back end, only SPA/Vue.js <---> Firebase.

I need to update bets status each X minutes automatically, using for that external API data.

Is there any way to do that without server using only firebase (cloud functions maybe)?

Thanks in advance.

1 Answers1

0

One way to accomplish that would indeed be with Cloud Functions. Have a look at the documentation for running functions periodically, the sample for deleting unused accounts, this question Cloud Functions for Firebase trigger on time?, and this example for deleting outdated data (although that triggers on database writes, so you'll have to modify that).

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807