Calling the API with unsupported (?) orderBy query params triggers an internal server error,
e.g.
mainnet: https://explorer.ark.io/api/v2/wallets/ALzabhk9wwcA9S8bHxSiUWZ93AGi3mCq3a/transactions?orderBy=sender:asc
devnet: https://dexplorer.ark.io/api/v2/wallets/DNjuJEDQkhrJ7cA9FZ2iVXt5anYiM8Jtc9/transactions?orderBy=sender:asc
Debug: internal, implementation, error
TypeError: Cannot read property 'asc' of undefined
at TransactionsRepository.findManyWithCount (/home/ark/.config/yarn/global/node_modules/@arkecosystem/core-database-postgres/dist/repositories/repository.js:44:54)
[...]
Expected Behavior
Return the sorted data.
Current Behavior
Triggers an internal server error.
Possible Solution
Steps to Reproduce (for bugs)
Click on link above - see error.
Context
Sorting by sender / recipient on this particular endpoint is used on the desktop wallet and was functional until recently.
Your Environment
-> dexplorer node.
Calling the API with unsupported (?)
orderByquery params triggers an internal server error,e.g.
mainnet: https://explorer.ark.io/api/v2/wallets/ALzabhk9wwcA9S8bHxSiUWZ93AGi3mCq3a/transactions?orderBy=sender:asc
devnet: https://dexplorer.ark.io/api/v2/wallets/DNjuJEDQkhrJ7cA9FZ2iVXt5anYiM8Jtc9/transactions?orderBy=sender:asc
Expected Behavior
Return the sorted data.
Current Behavior
Triggers an internal server error.
Possible Solution
Steps to Reproduce (for bugs)
Click on link above - see error.
Context
Sorting by sender / recipient on this particular endpoint is used on the desktop wallet and was functional until recently.
Your Environment
-> dexplorer node.