Skip to content

Commit c4c304a

Browse files
committed
Added node version to package.json
1 parent 085054c commit c4c304a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/actions/select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const eioUtils = require('elasticio-node').messages;
44
const co = require('co');
55
const cosql = require('co-mssql');
66

7-
const LAST_POLL_PLACEHOLDER = "%%EIO_LAST_POLL%%";
7+
const LAST_POLL_PLACEHOLDER = '%%EIO_LAST_POLL%%';
88

99
let connection;
1010

@@ -34,7 +34,7 @@ function processAction(msg, cfg, snapshot) {
3434
const originalSql = cfg.query;
3535
const now = new Date().toISOString();
3636
// Last poll should come from Snapshot, if not it's beginning of time
37-
const lastPoll = snapshot?snapshot.lastPoll:null || new Date(0).toISOString();
37+
const lastPoll = snapshot ? snapshot.lastPoll : null || new Date(0).toISOString();
3838
console.log('Last polling timestamp=%s', lastPoll);
3939
const sql = originalSql.split(LAST_POLL_PLACEHOLDER).join(lastPoll);
4040
console.log('Original query=%s', originalSql);

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
"request": "^2.75.0",
3232
"request-promise": "^4.1.1"
3333
},
34+
"engines": {
35+
"node": "8.1.3"
36+
},
3437
"scripts": {
3538
"pretest": "node_modules/.bin/eslint lib spec --ext .json --ext .js --fix",
3639
"test": "NODE_ENV=test mocha spec/*",

0 commit comments

Comments
 (0)