Skip to content

Commit

Permalink
fix: cursor field must use fixed order column
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <mingchang555@hotmail.com>
  • Loading branch information
zmcNotafraid committed Nov 28, 2023
1 parent 3e7b2de commit 7d63c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/godwoken_explorer/graphql/resolovers/udt.ex
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ defmodule GodwokenExplorer.Graphql.Resolvers.UDT do
}
)
|> paginate_query(input, %{
cursor_fields: [block_number: :desc, token_contract_address_hash: :asc, token_id: :asc],
cursor_fields: [token_contract_address_hash: :asc, token_id: :asc],
total_count_primary_key_field: [:id]
})

Expand Down

0 comments on commit 7d63c2e

Please sign in to comment.