mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
fix: actually assign inputStream
This commit is contained in:
@@ -201,8 +201,9 @@ export async function restoreBackup(
|
|||||||
let inputStream: Readable;
|
let inputStream: Readable;
|
||||||
if (backupFilePath.endsWith('.gz')) {
|
if (backupFilePath.endsWith('.gz')) {
|
||||||
const fileStream = storage.createPlainReadStream(backupFilePath);
|
const fileStream = storage.createPlainReadStream(backupFilePath);
|
||||||
const inputStream = storage.createGunzip();
|
const gunzip = storage.createGunzip();
|
||||||
fileStream.pipe(inputStream);
|
fileStream.pipe(gunzip);
|
||||||
|
inputStream = gunzip;
|
||||||
} else {
|
} else {
|
||||||
inputStream = storage.createPlainReadStream(backupFilePath);
|
inputStream = storage.createPlainReadStream(backupFilePath);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user