mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: migration storage backend and also user avatar upload.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user