Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!