fix: migration storage backend and also user avatar upload.

This commit is contained in:
charlesgauthereau
2026-01-18 11:45:36 +01:00
parent f29444a219
commit 3d695709d5
11 changed files with 251 additions and 132 deletions
+4 -1
View File
@@ -49,7 +49,7 @@ export async function storeBackupFiles(
return [];
}
const path = `${database.project?.slug}/${fileName}`;
const path = `backups/${database.project?.slug}/${fileName}`;
const size = file.length;
const checksum = computeChecksum(file);
@@ -99,6 +99,9 @@ export async function storeBackupFiles(
})
);
console.debug("Storage backup results", results);
const backupStatus = results.some(r => r.success) ? "success" : "failed";
await db