diff --git a/src/lib/notion/client.ts b/src/lib/notion/client.ts index f510e8b84..1b58a926d 100644 --- a/src/lib/notion/client.ts +++ b/src/lib/notion/client.ts @@ -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 {