Permalink
Browse files

Don't pass opts, they're bundled in query

  • Loading branch information...
1 parent e88c9bc commit cb496454a679f8c27458dfcc48fe24c48ae16093 mde committed Sep 9, 2012
Showing with 8 additions and 8 deletions.
  1. +2 −2 lib/adapters/mongo/index.js
  2. +2 −2 lib/adapters/riak/index.js
  3. +2 −2 lib/adapters/sql/postgres.js
  4. +2 −2 lib/index.js
@@ -218,7 +218,7 @@ utils.mixin(Adapter.prototype, new (function () {
};
- this.update = function (data, query, opts, callback) {
+ this.update = function (data, query, callback) {
var collectionName = _collectionizeModelName(query.model.modelName)
, collection = this.client.collection(collectionName)
, id = query.byId
@@ -250,7 +250,7 @@ utils.mixin(Adapter.prototype, new (function () {
}
};
- this.remove = function (query, opts, callback) {
+ this.remove = function (query, callback) {
var collectionName = _collectionizeModelName(query.model.modelName)
, collection = this.client.collection(collectionName)
, id = query.byId
@@ -295,7 +295,7 @@ utils.mixin(Adapter.prototype, new (function () {
}
};
- this.update = function (data, query, opts, callback) {
+ this.update = function (data, query, callback) {
var bucket = _bucketizeModelName(query.model.modelName)
, id = query.byId
, requestOpts
@@ -334,7 +334,7 @@ utils.mixin(Adapter.prototype, new (function () {
}
};
- this.remove = function (query, opts, callback) {
+ this.remove = function (query, callback) {
var bucket = _bucketizeModelName(query.model.modelName)
, id = query.byId
, requestOpts;
@@ -107,7 +107,7 @@ utils.mixin(Adapter.prototype, new (function () {
});
};
- this.update = function (data, query, opts, callback) {
+ this.update = function (data, query, callback) {
var modelName = data.type
, reg = model.descriptionRegistry
, props = reg[modelName].properties
@@ -152,7 +152,7 @@ utils.mixin(Adapter.prototype, new (function () {
});
};
- this.remove = function (query, opts, callback) {
+ this.remove = function (query, callback) {
var sql = '';
sql += 'DELETE FROM ' + this._tableizeModelName(query.model.modelName) + ' ';
sql += 'WHERE ' + this._serializeConditions(query.conditions);
View
@@ -424,7 +424,7 @@ utils.mixin(model, new (function () {
throw new Error('Adapter not found for ' + name);
}
- return adapt.update.apply(adapt, [data, query, opts, callback]);
+ return adapt.update.apply(adapt, [data, query, callback]);
};
obj.remove = function () {
@@ -448,7 +448,7 @@ utils.mixin(model, new (function () {
throw new Error('Adapter not found for ' + name);
}
- return adapt.remove.apply(adapt, [query, opts, callback]);
+ return adapt.remove.apply(adapt, [query, callback]);
};
obj.modelName = name;

0 comments on commit cb49645

Please sign in to comment.