diff --git a/api/system.js b/api/system.js index 9fd2db8..1bbd808 100644 --- a/api/system.js +++ b/api/system.js @@ -40,9 +40,9 @@ exports.get = function (app, data, callback) { const clientCollection = app.db.collection('client'); const messageCollection = app.db.collection('message'); const contributorCollection = app.db.collection('contributor'); - let parallelTasks = { + const parallelTasks = { client: function (asyncCallback) { - let keys = { + const keys = { android: 1, ios: 1, windows: 1 diff --git a/api/txtweb.js b/api/txtweb.js index 83ef566..0e92e5d 100644 --- a/api/txtweb.js +++ b/api/txtweb.js @@ -39,7 +39,7 @@ const status = require(path.join(__dirname, '..', 'status')); const parseMessage = function (app, data, callback) { - const reply = [ + let reply = [ 'Register with the VITacademics SMS Service: @vitacademics register [Campus] [RegNo] [DoB]', 'Get Course Details: @vitacademics course [CourseCode]', 'Get Today\'s Classes: @vitacademics today', diff --git a/app.js b/app.js index 2aee907..37aaff7 100644 --- a/app.js +++ b/app.js @@ -178,7 +178,7 @@ async.waterfall([ // Catch 404 and forward to error handler app.use(function (req, res, next) { - let err = new Error('Not Found'); + const err = new Error('Not Found'); err.status = 404; next(err); }); diff --git a/background.js b/background.js index fe0962c..bdc39fa 100644 --- a/background.js +++ b/background.js @@ -31,7 +31,7 @@ const handleMain = require(path.join(__dirname, 'handlers', 'main')); const handleMobile = require(path.join(__dirname, 'handlers', 'mobile')); const handleShare = require(path.join(__dirname, 'handlers', 'share')); -let app = {}; +const app = {}; /* var onConnect = function (err, db) { app.db = db; diff --git a/package.json b/package.json index 58a39e5..b734e42 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vitacademics", - "version": "1.2.3", + "version": "1.2.4", "description": "VITacademics API Server and Web App", "homepage": "https://vitacademics-rel.herokuapp.com/", "bugs": {