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

219
Vistas
how to automatically insert data into MongoDB when time limit increase

I am working on project where i want to automatically insert data when user doesn't input when time limit increase, for example when it is 12AM of a day then it automatically insert a data which can be

{
"_id": "611570ac944a3335483fcc04",
      "username": "abc",
      "Date": "2021-08-14",
      "attendance": "absent",
}

please help how to do this

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

We can achieve this by Cron. It is a tool that allows to execute something on a schedule. Cron Npm

var CronJob = require('cron').CronJob;
var job = new CronJob('00 00 00 * * *', function() { //execute at every midnight
  //Add your condition 
});
job.start();
over 4 years ago · Santiago Trujillo 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