Commit 51d936da8b0faad20832be3a0ffe1c26e4daf854

Authored by Eric Fernandez
1 parent 8577c8de47
Exists in master

message

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
... ... @@ -30,10 +30,12 @@ client.on('open', function open() {
30 30 console.log('recibiendo comprobante')
31 31 data.guardarComprobante(message.req).then(() => {
32 32 console.log('se guardó');
33   - client.send(JSON.stringify('ok'));
  33 + message.ok = true;
  34 + client.send(JSON.stringify(message));
34 35 }).catch((ee) => {
35 36 console.log('no se guardó' + ee);
36   - client.send(JSON.stringify('bad'));
  37 + message.ok = false;
  38 + client.send(JSON.stringify(message));
37 39 });
38 40  
39 41 break;