Skip to content

Instantly share code, notes, and snippets.

@lislon
Created February 3, 2015 13:59
Show Gist options
  • Save lislon/62f50cee8804ec9db69c to your computer and use it in GitHub Desktop.
Save lislon/62f50cee8804ec9db69c to your computer and use it in GitHub Desktop.
service.miscAndConfirm = function (orderId, attributes, done) {
var Order = derp.db.model('Order');
service.getById(orderId, {
stage: Order.STAGE.JOB
}, function (err, loanOrder) {
if (err) { return done(err); }
loanOrder.set({
loan: attributes.loan,
term: attributes.term,
stage: Order.STAGE.MISC_AND_CONFIRM,
});
loanOrder.save(done);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment