Skip to content

Commit 5403744

Browse files
committed
fix: pass undefined instead of null to transaction query so param defaults to the right value
1 parent 3549783 commit 5403744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/fasset-indexer-api/src/controllers/explorer.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class ExplorerController {
4141
@Query('types') types?: string | string[]
4242
): Promise<ApiResponse<TransactionsInfo>> {
4343
if (types != null && typeof types == 'string') types = [types]
44-
const transactionTypes = types != null ? this.parseTransactionTypes(types as string[]) : null
44+
const transactionTypes = types != null ? this.parseTransactionTypes(types as string[]) : undefined
4545
return apiResponse(this.service.transactions(limit, offset, user, agent, start, end, asc, transactionTypes), 200)
4646
}
4747

0 commit comments

Comments
 (0)