Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.getPotentialPersonDuplicates()
- .then(function (result) {
- return result.length > 0
- ? self.promptUserToPickFromDuplicatePersons(result)
- : Promise.reject(new Error("There where no duplicates found"));
- })
- .then(function (result) { return result ? self.selectPersonFromDuplicatePersonLookup() : Promise.resolve(); })
- .then(function (result) { return result ? self.addAsParticipant(redirect) : Promise.resolve(); })
- .catch(function (e) {
- console.log(e.stack);
- return self.createOdsPerson()
- .then(self.addAsParticipant.bind(self, redirect));
- })
- .then($ui.stopWaiting());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement