Skip to content

Commit

Permalink
🐛 fix: fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 16, 2023
1 parent eaf26bd commit a9fa133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/searchEngine/runner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import querystring from 'query-string';

import { PluginRunner } from '../../types/pluginItem';
import { OrganicResults, Result } from './type';

Expand All @@ -18,6 +16,8 @@ const fetchResult: PluginRunner<{ keywords: string }, Result> = async ({ keyword
q: keywords,
};

const { default: querystring } = await import('query-string');

const query = querystring.stringify(params);

const res = await fetch(`${BASE_URL}?${query}`);
Expand Down

0 comments on commit a9fa133

Please sign in to comment.