Skip to content

Commit

Permalink
feat(neuron-wallet): add default parameters in getAllByKeywords method
Browse files Browse the repository at this point in the history
set the default page no to 1, and the default page size to 15
  • Loading branch information
Keith-CY committed Jul 30, 2019
1 parent 54e4bc0 commit bfd9b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/controllers/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class TransactionsController {
public static async getAllByKeywords(
params: Controller.Params.TransactionsByKeywords
): Promise<Controller.Response<PaginationResult<Transaction> & Controller.Params.TransactionsByKeywords>> {
const { pageNo, pageSize, keywords = '', walletID = '' } = params
const { pageNo = 1, pageSize = 15, keywords = '', walletID = '' } = params

const addresses = (await AddressesService.allAddressesByWalletId(walletID)).map(addr => addr.address)

Expand Down

0 comments on commit bfd9b0d

Please sign in to comment.