Browse Source

Fix rejection handler for finish invite

feature/dockerfile-arm
Ștefan D. Mihăilă 5 years ago
parent
commit
4c894ecef2
No known key found for this signature in database GPG Key ID: 6220AD7846220A52
  1. 13
      api/hub.ts
  2. 14
      dist/api/hub.js
  3. 2
      dist/api/hub.js.map

13
api/hub.ts

@ -135,13 +135,12 @@ const finishInviteInHub = (params, onSuccess, onFailure) => {
})
.then(res => res.json())
.then(json => {
if (json.object) {
console.log('[hub] finished invite to hub')
onSuccess(json)
} else {
console.log('[hub] fail to finish invite in hub')
onFailure(json)
}
console.log('[hub] finished invite to hub')
onSuccess(json)
})
.catch(e => {
console.log('[hub] fail to finish invite in hub')
onFailure(e)
})
}

14
dist/api/hub.js

@ -130,14 +130,12 @@ const finishInviteInHub = (params, onSuccess, onFailure) => {
})
.then(res => res.json())
.then(json => {
if (json.object) {
console.log('[hub] finished invite to hub');
onSuccess(json);
}
else {
console.log('[hub] fail to finish invite in hub');
onFailure(json);
}
console.log('[hub] finished invite to hub');
onSuccess(json);
})
.catch(e => {
console.log('[hub] fail to finish invite in hub');
onFailure(e);
});
};
exports.finishInviteInHub = finishInviteInHub;

2
dist/api/hub.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save