不要怂,就是干,撸起袖子干!

Commit 39fda2ce by Sascha Depold

Merge branch 'doneCbArgs' of https://github.com/janmeier/sequelize into janmeier-doneCbArgs

2 parents 0a1661c7 9ed4f7a3
......@@ -49,7 +49,7 @@ module.exports = (function() {
function(fct) {
fct = bindToProcess(fct);
this.on('error', function(err) { fct(err, null) })
.on('success', function(result) { fct(null, result) })
.on('success', function(arg0, arg1) { fct(null, arg0, arg1) })
return this
}
......
......@@ -355,7 +355,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
};
this.User.create(data).success(function (user) {
self.User.findOrCreate(data).success(function (_user, created) {
self.User.findOrCreate(data).done(function (err, _user, created) {
expect(_user.id).to.equal(user.id)
expect(_user.username).to.equal('Username')
expect(_user.data).to.equal('ThisIsData')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!