Fix remote method definition in client-server example
This commit is contained in:
parent
75406f0891
commit
5eca225c0a
|
@ -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'}
|
||||
|
|
Loading…
Reference in New Issue