Browse Source

fix: raw.split is not a function

雲霧 1 year ago
parent
commit
725054c7d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/fetch-prompts.mjs

+ 1 - 1
scripts/fetch-prompts.mjs

@@ -36,7 +36,7 @@ async function fetchEN() {
   try {
     // const raw = await (await fetch(EN_URL)).text();
     const response = await Promise.race([fetch(EN_URL), timeoutPromise(5000)]);
-    const raw = response.text();
+    const raw = await response.text();
     return raw
       .split("\n")
       .slice(1)