mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
fix: create or overwrite file
This commit is contained in:
@@ -291,7 +291,7 @@ export async function uploadBackup(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const path = join(backupsFolder, `uploaded-${fn}`);
|
const path = join(backupsFolder, `uploaded-${fn}`);
|
||||||
await storage.overwriteFile(path, file.buffer);
|
await storage.createOrOverwriteFile(path, file.buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createSqlProgressStreams(cb: (progress: number) => void) {
|
function createSqlProgressStreams(cb: (progress: number) => void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user