mirror of
https://github.com/Nezumi-2711/google-drive-s3.git
synced 2026-09-22 13:38:30 +00:00
feat: add the openapi docs
This commit is contained in:
+2
-1
@@ -220,9 +220,10 @@ export async function streamDownloadFromDrive(accessToken: string, bucket: strin
|
||||
console.error(await downloadRes.text());
|
||||
throw new Error("Download failed");
|
||||
}
|
||||
if (!downloadRes.body) throw new Error("Download response had no body");
|
||||
|
||||
return {
|
||||
body: downloadRes.body!,
|
||||
body: downloadRes.body,
|
||||
contentType: file.mimeType || "application/octet-stream",
|
||||
size: parseInt(file.size || "0", 10),
|
||||
id: file.id,
|
||||
|
||||
Reference in New Issue
Block a user