erp-dispatcher
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -49,2 +49,3 @@ (function() { | ||
this.sid = json.sid; | ||
console.log('loginSuccess', json.sid); | ||
return this.emit('loginSuccess', json.sid); | ||
@@ -111,2 +112,3 @@ } else { | ||
var data, name, options, today; | ||
debug('put item'); | ||
if (this.sid !== '') { | ||
@@ -180,3 +182,2 @@ today = new Date; | ||
try { | ||
console.log(body); | ||
json = JSON.parse(body); | ||
@@ -183,0 +184,0 @@ if (json.success === true) { |
@@ -228,3 +228,5 @@ (function() { | ||
if (socket.erp != null) { | ||
socket.erp.put(data); | ||
if (socket.erp.sid !== '') { | ||
socket.erp.put(data); | ||
} | ||
} | ||
@@ -231,0 +233,0 @@ return this.dispatcher.emit('new', data); |
{ | ||
"name": "erp-dispatcher", | ||
"description": "dispatcher between erp system and letter sorter", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "erp-dispatcher": "./bin/erp-dispatcher" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45450
668