Skip to content

Commit

Permalink
Merge pull request #1402 from scroll-tech/await-fetch-blogs
Browse files Browse the repository at this point in the history
fix: await fetch blogs
  • Loading branch information
Holybasil authored Jan 8, 2025
2 parents c043654 + bfd7d41 commit 8bc7cbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/download-blog-posts.data.json.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs from "node:fs"
import fetch from "node-fetch"
import fs from "node:fs"
import path from "node:path"

import { fileURLToPath } from "url"

const __dirname = path.dirname(fileURLToPath(import.meta.url))
Expand Down Expand Up @@ -29,4 +28,4 @@ async function fetchPosts() {
])
}

fetchPosts()
await fetchPosts()

0 comments on commit 8bc7cbc

Please sign in to comment.