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

View File

@@ -16,7 +16,8 @@
"start-client": "cd client && yarn start",
"start": "node server.js",
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client",
"check-booking-changes": "node ./cronServices/checkBookingChanges.js"
"check-booking-changes": "node ./cronServices/checkBookingChanges.js",
"refresh-oauth": "node ./cronServices/oauth.js"
},
"engines": {
"node": "11.12.x"
@@ -32,6 +33,7 @@
"moment": "^2.24.0",
"moment-timezone": "^0.5.25",
"pg": "^7.11.0",
"query-string": "^6.8.2",
"sequelize": "^5.8.6",
"sequelize-cli": "^5.4.0"
},