Skip to content

Commit

Permalink
ensure errors propagate during update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wsiegenthaler committed Mar 20, 2018
1 parent 6609524 commit 97d7e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epilogue.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function EpilogueExport(embed, sequelize, epilogue) {
/* Perform updates and skip the default write milestone */
resource.update.write.before((req, res, ctx) => {
ctx.instance.set(req.body);
update(resource.model, ctx.instance, include, options)
return update(resource.model, ctx.instance, include, options)
.then(inst => ctx.instance = inst)
.catch(handleError)
.then(ctx.skip);
Expand Down

0 comments on commit 97d7e08

Please sign in to comment.