fix eslint and types
This commit is contained in:
@@ -21,12 +21,12 @@ module Types
|
||||
|
||||
field :sell_crypto_orders, SellCryptoOrderType.connection_type, null: false
|
||||
def sell_crypto_orders
|
||||
[]
|
||||
Pundit.policy_scope(current_user, SellCryptoOrder)
|
||||
end
|
||||
|
||||
field :buy_crypto_orders, BuyCryptoOrderType.connection_type, null: false
|
||||
def buy_crypto_orders
|
||||
[]
|
||||
Pundit.policy_scope(current_user, BuyCryptoOrder)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -12,6 +12,10 @@ class XStakeSchema < GraphQL::Schema
|
||||
Types::BalanceType
|
||||
when FiatBalance
|
||||
Types::FiatBalanceType
|
||||
when SellCryptoOrder
|
||||
Types::SellCryptoOrderType
|
||||
when BuyCryptoOrder
|
||||
Types::BuyCryptoOrderType
|
||||
else
|
||||
raise(GraphQL::RequiredImplementationMissingError, "Unexpected object: #{obj}")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user