Fix remote method definition in client-server example

This commit is contained in:
Ritchie Martori 2014-06-19 12:15:46 -07:00
parent 75406f0891
commit 5eca225c0a
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ CartItem.sum = function(cartId, callback) {
}); });
} }
loopback.remoteMethod( CartItem.remoteMethod('sum',
CartItem.sum,
{ {
accepts: {arg: 'cartId', type: 'number'}, accepts: {arg: 'cartId', type: 'number'},
returns: {arg: 'total', type: 'number'} returns: {arg: 'total', type: 'number'}