Skip to content

Commit

Permalink
fix update record alias return
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosouza committed Oct 25, 2017
1 parent b8b30fa commit e7321ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,10 @@ Alias.prototype = {
if (a) {
// exists then update
a.updateAttributes(aliasObj)
.then(done)
.then( ()=> {
done();
return null;
})
.catch( (err)=> {
we.log.error('Error in updateAttributes url alias:', err);
done();
Expand Down

0 comments on commit e7321ca

Please sign in to comment.