Merge Request #18

Merged
Created by Eric Fernandez

Master

Assignee: Eric Fernandez
Milestone: None

Merged by Eric Fernandez

Commits (2)
1 participants
config/config.ejemplo.json
1 1 {
2   - "urlHO": "ws://localhost:5050",
3   - "port": 6060
4   -}
5 2 \ No newline at end of file
  3 + "urlHO": "ws://10.231.45.234:5555",
  4 + "bo": {
  5 + "client": "mssql",
  6 + "connection": {
  7 + "host": "10.231.45.211",
  8 + "user": "sa",
  9 + "password": "xxzza",
  10 + "database": "UNITYOIL_28082017"
  11 + },
  12 + "debug": false
  13 + },
  14 + "gln": "7790968003283",
  15 + "codigoEstacion": "99999"
  16 +}
... ... @@ -141,7 +141,9 @@ module.exports = function(config) {
141 141 });
142 142  
143 143 })
144   - .catch(reject);
  144 + .catch(() => {
  145 + reject(510);
  146 + });
145 147  
146 148 });
147 149 }
... ... @@ -36,6 +36,7 @@ client.on('open', function open() {
36 36 client.send(JSON.stringify(message));
37 37 }).catch((ee) => {
38 38 console.log('no se guardó' + ee);
  39 + message.code = ee;
39 40 message.ok = 0;
40 41 client.send(JSON.stringify(message));
41 42 });