Adding indexing by user id

This commit is contained in:
Will Marshall
2014-05-14 11:08:21 +10:00
parent a3b5ba2257
commit 1c98f10c20
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
Darkswarm.controller "CheckoutCtrl", ($scope, storage, CheckoutFormState, Order, CurrentUser) ->
$scope.Order = Order
storage.bind $scope, "Order.order", {storeName: "order_#{Order.order.id}"}
storage.bind $scope, "Order.order", {storeName: "order_#{Order.order.id}#{Order.order.user_id}"}
$scope.order = Order.order # Ordering is important
$scope.enabled = if CurrentUser then true else false

View File

@@ -1,5 +1,5 @@
object current_order
attributes :id, :email, :shipping_method_id
attributes :id, :email, :shipping_method_id, :user_id
node :display_total do
current_order.display_total.money.to_f