From 5eca225c0ac94cb063f34e0d9733f0147da2543b Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Thu, 19 Jun 2014 12:15:46 -0700 Subject: [PATCH] Fix remote method definition in client-server example --- example/client-server/models.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/client-server/models.js b/example/client-server/models.js index f6dc594b..34d5c8ba 100644 --- a/example/client-server/models.js +++ b/example/client-server/models.js @@ -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'}