Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
fix: Serialize parameters when requesting transfers (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Dec 20, 2021
1 parent a8cc5d8 commit e0a75e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/transfer/TransferAPI.ts
@@ -1,5 +1,6 @@
import {AxiosInstance} from 'axios';
import {ISO_8601_MS_UTC, PaginatedData, Pagination} from '../payload/common';
import querystring from 'querystring';

export interface TransferInformation {
account_id: string;
Expand Down Expand Up @@ -63,7 +64,10 @@ export class TransferAPI {
if (profileId) {
params.profile_id = profileId;
}
const response = await this.apiClient.get<TransferInformation[]>(resource, {params});
const response = await this.apiClient.get<TransferInformation[]>(resource, {
params,
paramsSerializer: querystring.stringify,
});
return {
data: response.data,
pagination: {
Expand Down

0 comments on commit e0a75e8

Please sign in to comment.