Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
I want to add a old document to a new collection on a specific date

I am extracting a document from a collection called 'Users'. Then I want to push the document with some updations to a collection 'pending'.

The Invoke a cloud function every day and get data from my users' collection. Every document has a timestamp.

enter image description here

I check every day if the date is equal to the date on the server. if yes, then it executes the function for adding the data to the new collection pending.

How can I ensure if It will work correctly?

Thanks in advance!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

There are several approaches to ensure the code works correctly:

  1. Add test, you can add test for cloud function which can run locally or even against a real Firestore database. Check more details here: https://firebase.google.com/docs/functions/local-shell

  2. You can also monitor the logs from Firebase console for the scheduled function. Console -> Cloud Function -> log -> select the function name

  3. On the front-end, you can even add one more check to verify if the pending date in the expected time frame.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda