Commit c9343c010aab0d24c5b7d6f999b570e9e3cf02bc

Authored by Eric Fernandez
1 parent 7747a5a7ba
Exists in master

message ok

Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
webSocketServer/index.js
... ... @@ -107,7 +107,12 @@ module.exports = function() {
107 107  
108 108 if (idSolicitud == message.idSolicitud) {
109 109  
110   - resolve(message.data);
  110 + if (message.ok) {
  111 + resolve();
  112 + } else {
  113 +
  114 + reject();
  115 + }
111 116 }
112 117  
113 118 });