Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/api/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ class SearchAPI {
radius,
chains,
categories,
groups,
limit,
} = params;

Expand All @@ -134,9 +133,6 @@ class SearchAPI {
if (Array.isArray(categories)) {
categories = categories.join(',');
}
if (Array.isArray(groups)) {
groups = groups.join(',');
}

const response: any = await Http.request({
method: 'GET',
Expand All @@ -146,7 +142,6 @@ class SearchAPI {
radius,
chains,
categories,
groups,
limit,
},
});
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ export interface RadarSearchPlacesParams {
radius?: number;
chains?: string[] | string;
categories?: string[] | string;
groups?: string[] | string;
limit?: number;
}

Expand Down
3 changes: 1 addition & 2 deletions test/api/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe('Search', () => {
const radius = 100;
const chains = ['dunkin', 'sbucks'];
const categories = ['coffee-shop'];
const groups = ['airport'];
const tags = ['geofence-tag'];
const metadata = { 'geofence-metadata-key': 'geofence-metadata-value' };
const layers: RadarGeocodeLayer[] = ['address'];
Expand Down Expand Up @@ -69,7 +68,7 @@ describe('Search', () => {

const near = { latitude, longitude };

const response = await Search.searchPlaces({ near, radius, chains, categories, groups, limit })
const response = await Search.searchPlaces({ near, radius, chains, categories, limit })
const validateResponse = getResponseWithDebug(options.debug, placesResponse, placesResponse);
expect(response).toEqual(validateResponse);
});
Expand Down
3 changes: 1 addition & 2 deletions test/radar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ describe('Radar', () => {
const radius = 100;
const chains = ['dunkin', 'sbucks'];
const categories = ['coffee-shop'];
const groups = ['airport'];
const tags = ['geofence-tags'];
const limit = 50;

Expand Down Expand Up @@ -311,7 +310,7 @@ describe('Radar', () => {
it('should call searchPlaces', async () => {
searchStub.mockResolvedValue({ places: [] });

const response = await Radar.searchPlaces({ radius, chains, categories, groups, limit });
const response = await Radar.searchPlaces({ radius, chains, categories, limit });
expect(response.places).toEqual([]);
});
});
Expand Down