Skip to content

Commit

Permalink
Merge pull request #58 from strongloop/feature/coercion-overhaul
Browse files Browse the repository at this point in the history
Use the new API for defining remoting types
  • Loading branch information
bajtos authored Sep 9, 2016
2 parents d84db7b + bce9971 commit a009404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/remote-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ RemoteConnector.prototype.resolve = function(Model) {
});

// setup a remoting type converter for this model
remotes.defineType(Model.modelName, function(val) {
return val ? new Model(val) : val;
remotes.defineObjectType(Model.modelName, function(data) {
return new Model(data);
});
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"homepage": "http://loopback.io",
"dependencies": {
"loopback-datasource-juggler": "^3.0.0-alpha.7",
"strong-remoting": "^3.0.0-alpha.5"
"strong-remoting": "^3.0.0-alpha.6"
},
"devDependencies": {
"assert": "^1.1.2",
Expand Down

0 comments on commit a009404

Please sign in to comment.