From 85f7d66a9997ccac2688db48aa0c7b2071ab0d50 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 31 Jan 2024 17:16:51 +0000 Subject: [PATCH] Handling very large exports/backup downloads. --- packages/backend-core/src/objectStore/objectStore.ts | 4 ++-- packages/pro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend-core/src/objectStore/objectStore.ts b/packages/backend-core/src/objectStore/objectStore.ts index 57ead0e809..3a3b9cdaab 100644 --- a/packages/backend-core/src/objectStore/objectStore.ts +++ b/packages/backend-core/src/objectStore/objectStore.ts @@ -7,7 +7,7 @@ import tar from "tar-fs" import zlib from "zlib" import { promisify } from "util" import { join } from "path" -import fs from "fs" +import fs, { ReadStream } from "fs" import env from "../environment" import { budibaseTempDir } from "./utils" import { v4 } from "uuid" @@ -184,7 +184,7 @@ export async function upload({ export async function streamUpload( bucketName: string, filename: string, - stream: any, + stream: ReadStream | ReadableStream, extra = {} ) { const objectStore = ObjectStore(bucketName) diff --git a/packages/pro b/packages/pro index eb9565f568..e4dab7e4cc 160000 --- a/packages/pro +++ b/packages/pro @@ -1 +1 @@ -Subproject commit eb9565f568cfef14b336b14eee753119acfdd43b +Subproject commit e4dab7e4ccb4a1e2864a35dd2a851ca1a898e6c6