Skip to content

Commit

Permalink
fix: unclean require
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Mar 2, 2024
1 parent 0165d74 commit c91c46d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/routes/twitter/keyword.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const webApiImpl = require('./web-api/search');
import webApiImpl from './web-api/search';

export default async (ctx) => await webApiImpl(ctx);
2 changes: 1 addition & 1 deletion lib/routes/twitter/media.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const webApiImpl = require('./web-api/media');
import webApiImpl from './web-api/media';

export default async (ctx) => await webApiImpl(ctx);
2 changes: 1 addition & 1 deletion lib/routes/twitter/tweet.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const webApiImpl = require('./web-api/tweet');
import webApiImpl from './web-api/tweet';

export default async (ctx) => {
await webApiImpl(ctx);
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/twitter/user.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const webApiImpl = require('./web-api/user');
import webApiImpl from './web-api/user';

export default (ctx) => webApiImpl(ctx);

0 comments on commit c91c46d

Please sign in to comment.