Skip to content

Commit

Permalink
Merge pull request #181 from otoyo/fix-image-download
Browse files Browse the repository at this point in the history
Return promise in downloadFile()
  • Loading branch information
otoyo authored Dec 2, 2023
2 parents 3065ee5 + f0cf7f1 commit 0d0bcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/notion/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export async function downloadFile(url: URL) {
if (res.headers['content-type'] === 'image/jpeg') {
stream = stream.pipe(rotate)
}
stream.pipe(new ExifTransformer()).pipe(writeStream)
return stream.pipe(new ExifTransformer()).pipe(writeStream)
}

export async function getDatabase(): Promise<Database> {
Expand Down

1 comment on commit 0d0bcf9

@vercel
Copy link

@vercel vercel bot commented on 0d0bcf9 Dec 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

astro-notion-blog – ./

astro-notion-blog-otoyo.vercel.app
astro-notion-blog-taupe.vercel.app
astro-notion-blog-git-main-otoyo.vercel.app

Please sign in to comment.