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

Commit b859ca44 by Sascha Gehlich

Fix BelongsTo.getAssociation to use the bugfix as well. Removed `.only` call in tests.

1 parent 42988bf2
......@@ -58,7 +58,6 @@ module.exports = (function() {
obj[this.accessors.get] = function(params) {
var id = this[self.identifier]
, where = {}
, options = Utils._.pick(params || {}, 'transaction')
where[primaryKey] = id
......@@ -72,7 +71,7 @@ module.exports = (function() {
params = id
}
return self.target.find(params, options)
return self.target.find(params)
}
return this
......
......@@ -467,7 +467,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
describe('find', function() {
it.only('supports the transaction option in the first parameter', function(done) {
it('supports the transaction option in the first parameter', function(done) {
Support.prepareTransactionTest(this.sequelize, function(sequelize) {
var User = sequelize.define('User', { username: Sequelize.STRING, foo: Sequelize.STRING })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!