Skip to content

Commit

Permalink
fix: update currency list to be mandatory (#2329)
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi authored Feb 15, 2023
1 parent 0e362b4 commit d085443
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graphql/main/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ type Query {
btcPrice(currency: DisplayCurrency! = "USD"): Price
btcPriceList(range: PriceGraphRange!): [PricePoint]
businessMapMarkers: [MapMarker]
currencyList: [Currency]
currencyList: [Currency!]!
globals: Globals
lnInvoicePaymentStatus(
input: LnInvoicePaymentStatusInput!
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/root/query/currency-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { mapError } from "@graphql/error-map"
import Currency from "@graphql/types/object/currency"

const CurrencyListQuery = GT.Field({
type: GT.List(Currency),
type: GT.NonNullList(Currency),
resolve: async () => {
const currencies = await Prices.listCurrencies()
if (currencies instanceof Error) throw mapError(currencies)
Expand Down

0 comments on commit d085443

Please sign in to comment.