diff --git a/src/io/import/processors/updateUriType.ts b/src/io/import/processors/updateUriType.ts index a5dd7c6ff..b6aa5169f 100644 --- a/src/io/import/processors/updateUriType.ts +++ b/src/io/import/processors/updateUriType.ts @@ -21,11 +21,16 @@ function detectStreamType(stream: ReadableStream) { }, }); - stream.pipeTo(writableStream).catch((err) => { - if (err !== DoneSignal) { - reject(err); - } - }); + stream + .pipeTo(writableStream) + .then(() => { + resolve(''); + }) + .catch((err) => { + if (err !== DoneSignal) { + reject(err); + } + }); }); }