This repository has been archived on 2025-11-04. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
qoverflow/server/utils/cronRefresh.js
2022-08-01 22:28:25 -05:00

16 lines
328 B
JavaScript

const { getAllQuestions, getAllUsers } = require('./getData');
async function refreshQuestions(_job, done) {
console.log('Im running');
await getAllQuestions();
done();
}
async function refreshUsers(_job, done) {
await getAllUsers();
done();
}
module.exports = {
refreshQuestions,
refreshUsers,
};