High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix: cli upload deletes files that failed uploading (#19140)
Daniel Dietzlerbddb43e1d4f4
diff --git a/cli/src/commands/asset.ts b/cli/src/commands/asset.tsindex edb24e2f67..2af3cf8d5e 100644--- a/cli/src/commands/asset.ts+++ b/cli/src/commands/asset.ts@@ -70,7 +70,10 @@ const uploadBatch = async (files: string[], options: UploadOptionsDto) => {console.log(JSON.stringify({ newFiles, duplicates, newAssets }, undefined, 4));}await updateAlbums([...newAssets, ...duplicates], options);- await deleteFiles(newFiles, options);+ await deleteFiles(+ newAssets.map(({ filepath }) => filepath),+ options,+ );};export const startWatch = async (