Skip to content

Commit fba29e5

Browse files
committed
fix export on search services
1 parent 7c7510f commit fba29e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/modules/search/search.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ export const filteredTypes = (type: string) => {
151151
return type === keywords[type];
152152
};
153153

154-
const getResults = async ({ lat, lng, query, types }: IGetSearchParams): Promise<IResults[]> => {
154+
export const getResults = async ({
155+
lat,
156+
lng,
157+
query,
158+
types,
159+
}: IGetSearchParams): Promise<IResults[]> => {
155160
const results = await getSearch({ lat, lng, query, types });
156161
const newResults = await Promise.all(
157162
results.map(async (result: any) => {

0 commit comments

Comments
 (0)