Skip to content

Commit

Permalink
fix: raw.split is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuu authored Apr 23, 2023
1 parent 2efba6e commit 725054c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fetch-prompts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 725054c

Please sign in to comment.