Categories
Development Heroku MongoDB

How to change a property in a MongoDB collection every Sunday at 00:01 Midnight in app that written under Node JS?

I have an app on Heroku that’s written in Node JS and uses Mongo DB as a database. In Mongo I have a collection GamePlan that one of the properties is Status : const mongoose = require(“mongoose”); const Schema = mongoose.Schema; const GamePlanSchema = new Schema({ LeadId: { type: String, required: true }, PackageId: { […]