many important fixes

This commit is contained in:
2020-02-29 11:43:00 -05:00
parent 2149345d3d
commit 73c207c324
28 changed files with 1463 additions and 242 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class Users::ListSerializer
:is_paid, :price, :closed_at
has_many :users, serializer: Users::UserSerializer
has_many(:orders, serializer: Users::OrderSerializer)
has_many :orders, serializer: Users::OrderSerializer
has_many :join_requests, serializer: Users::JoinRequestSerializer
has_one :supplier, serializer: Users::SupplierSerializer
has_one :table, serializer: Users::TableSerializer
@@ -1,6 +1,6 @@
class Users::ProductOrderSerializer
include Qwaiter::UserBaseSerializer
attributes :quantity, :price, :product_name, :product_variant
# belongs_to :product #DO NOT USE THIS, THIS IS NOT NEEDED
# belongs_to :product #DO NOT USE THIS, THIS IS NOT NEEDED, already included in /tables/:id/supplier
has_one :order, serializer: Users::OrderSerializer
end