Skip to content

Commit bfd7d41

Browse files
committed
fix: await fetch blogs
1 parent c043654 commit bfd7d41

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/download-blog-posts.data.json.mjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import fs from "node:fs"
21
import fetch from "node-fetch"
2+
import fs from "node:fs"
33
import path from "node:path"
4-
54
import { fileURLToPath } from "url"
65

76
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@@ -29,4 +28,4 @@ async function fetchPosts() {
2928
])
3029
}
3130

32-
fetchPosts()
31+
await fetchPosts()

0 commit comments

Comments
 (0)