소스 검색

fix: raw.split is not a function

雲霧 1 년 전
부모
커밋
725054c7d5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)