From d48fd32ae3c13dcfa6f6b2307e21b8039d708783 Mon Sep 17 00:00:00 2001 From: ZTRdiamond Date: Wed, 4 Sep 2024 17:35:22 +0700 Subject: [PATCH] fix: cheerio import error --- src/libs/function.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/function.js b/src/libs/function.js index db77d5b..902b56b 100644 --- a/src/libs/function.js +++ b/src/libs/function.js @@ -5,7 +5,7 @@ import path from "path"; import { fileURLToPath, pathToFileURL } from "url"; import { platform } from "os"; import moment from "moment-timezone"; -import cheerio from "cheerio"; +import * as cheerio from "cheerio"; import { format } from "util"; import FormData from "form-data" import mimes from "mime-types" @@ -358,4 +358,4 @@ export default new (class Function { rating: bestMatch.rating, }; } -})() \ No newline at end of file +})()