add cron service to obtain oauth token and store it to the DB

This commit is contained in:
Bilal Catic
2019-08-30 23:19:04 +02:00
parent 4bf6d5f55d
commit 333733099b
8 changed files with 175 additions and 3 deletions

8
cronServices/oauth.js Normal file
View File

@@ -0,0 +1,8 @@
'use strict';
const { refreshOauthToken } = require('../services/officeRnD/oauth');
refreshOauthToken().then(() => process.exit()).catch((error) => {
console.log(error);
process.exit();
});