Skip to content

Commit

Permalink
fix: async r.json()
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt committed Feb 5, 2024
1 parent e4a6513 commit 7ec0e00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion automations/webmentions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ const main = async () => {
];

fetch(`${apiEndpoint}?${apiOptions.join("&")}`)
.then(r => r.json().children)
.then(r => r.json())
.then(({ children }) => children)
.then(writeMentionsToFile);

function writeMentionsToFile(mentions: WebMention[]) {
Expand Down

0 comments on commit 7ec0e00

Please sign in to comment.