Skip to content

Commit

Permalink
FINALLY WORKING AUTO STATUS UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
insane1304 committed Apr 10, 2021
1 parent 43e08fe commit 652a157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function findVisitor() {
// today = yyyy + '-' + mm + '-' + dd;
// console.log(today);

cron.schedule('0 26 1 * * *', () => {
cron.schedule('0 0 0 * * *', () => {
updateStatus();
async function updateStatus() {
await User.find({
Expand Down

0 comments on commit 652a157

Please sign in to comment.