From c91c46d8888a2c31a42c7dff4406d863b820d60a Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 2 Mar 2024 19:59:27 +0800 Subject: [PATCH] fix: unclean require --- lib/routes/twitter/keyword.js | 2 +- lib/routes/twitter/media.js | 2 +- lib/routes/twitter/tweet.js | 2 +- lib/routes/twitter/user.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routes/twitter/keyword.js b/lib/routes/twitter/keyword.js index 01bfca71ad85ac..027c410c4395bf 100644 --- a/lib/routes/twitter/keyword.js +++ b/lib/routes/twitter/keyword.js @@ -1,3 +1,3 @@ -const webApiImpl = require('./web-api/search'); +import webApiImpl from './web-api/search'; export default async (ctx) => await webApiImpl(ctx); diff --git a/lib/routes/twitter/media.js b/lib/routes/twitter/media.js index 595b7165cd8ff8..81eba91621be40 100644 --- a/lib/routes/twitter/media.js +++ b/lib/routes/twitter/media.js @@ -1,3 +1,3 @@ -const webApiImpl = require('./web-api/media'); +import webApiImpl from './web-api/media'; export default async (ctx) => await webApiImpl(ctx); diff --git a/lib/routes/twitter/tweet.js b/lib/routes/twitter/tweet.js index d65d1e8ea0fe82..16d93a203ed939 100644 --- a/lib/routes/twitter/tweet.js +++ b/lib/routes/twitter/tweet.js @@ -1,4 +1,4 @@ -const webApiImpl = require('./web-api/tweet'); +import webApiImpl from './web-api/tweet'; export default async (ctx) => { await webApiImpl(ctx); diff --git a/lib/routes/twitter/user.js b/lib/routes/twitter/user.js index 70359ed26b9778..c3074f0403267e 100644 --- a/lib/routes/twitter/user.js +++ b/lib/routes/twitter/user.js @@ -1,3 +1,3 @@ -const webApiImpl = require('./web-api/user'); +import webApiImpl from './web-api/user'; export default (ctx) => webApiImpl(ctx);