Skip to content

Commit

Permalink
fix: await fetch blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Holybasil committed Jan 8, 2025
1 parent c043654 commit bfd7d41
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 bfd7d41

Please sign in to comment.