Skip to content

Commit

Permalink
refactor(store) Renames function args
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgosera committed Nov 3, 2015
1 parent aad5bd9 commit a292d20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Store.prototype.callModelFunction = function(modelName, funcName, args) {
});
};

Store.prototype.get = function(modelName, pk) {
return this.callModelFunction(modelName, 'get', pk);
Store.prototype.get = function(modelName, query) {
return this.callModelFunction(modelName, 'get', query);
};

Store.prototype.create = function(modelName, obj) {
Expand All @@ -52,8 +52,8 @@ Store.prototype.update = function(modelName, obj) {
return this.callModelFunction(modelName, 'update', obj);
};

Store.prototype.delete = function(modelName, pk) {
return this.callModelFunction(modelName, 'delete', pk);
Store.prototype.delete = function(modelName, query) {
return this.callModelFunction(modelName, 'delete', query);
};

/**
Expand Down

0 comments on commit a292d20

Please sign in to comment.