mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix(web-routes): enhance backup response messages to clarify local and S3 availability
This commit is contained in:
parent
b1a2938f84
commit
fe2c4fd1c7
1 changed files with 5 additions and 1 deletions
|
|
@ -326,7 +326,11 @@ Route::middleware(['auth'])->group(function () {
|
|||
'root' => '/',
|
||||
]);
|
||||
if (! $disk->exists($filename)) {
|
||||
return response()->json(['message' => 'Backup not found.'], 404);
|
||||
if ($execution->scheduledDatabaseBackup->disable_local_backup === true && $execution->scheduledDatabaseBackup->save_s3 === true) {
|
||||
return response()->json(['message' => 'Backup not available locally, but available on S3.'], 404);
|
||||
}
|
||||
|
||||
return response()->json(['message' => 'Backup not found locally on the server.'], 404);
|
||||
}
|
||||
|
||||
return new StreamedResponse(function () use ($disk, $filename) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue