Skip to content

Commit

Permalink
Fix remote method definition in client-server example
Browse files Browse the repository at this point in the history
  • Loading branch information
ritch committed Jun 19, 2014
1 parent 75406f0 commit 5eca225
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/client-server/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ CartItem.sum = function(cartId, callback) {
});
}

loopback.remoteMethod(
CartItem.sum,
CartItem.remoteMethod('sum',
{
accepts: {arg: 'cartId', type: 'number'},
returns: {arg: 'total', type: 'number'}
Expand Down

0 comments on commit 5eca225

Please sign in to comment.