2 Commits
1.7 ... 1.9

Author SHA1 Message Date
95be4fc5a9 fix file download 2026-01-07 12:25:18 +01:00
dec195e619 export custom metrics 2025-12-17 11:17:46 +01:00
2 changed files with 19 additions and 1 deletions

View File

@@ -66,6 +66,24 @@ abstract class Action extends Entity
];
}
public function exportMetrics(
?string $entry = null,
?array $entries = null,
?string $filter = null,
?array $metrics = null
)
{
return [
'json' => [
'type' => 'export-metrics',
'entry' => $entry,
'entries' => $entries,
'filter' => $filter,
'metrics' => $metrics,
],
];
}
public function error(string $message)
{
return [

View File

@@ -96,7 +96,7 @@ class PilotServiceProvider extends ServiceProvider
if (isset($output['file'])) {
return response()->download(
$output['file']['content'],
$output['file']['contents'],
$output['file']['name'],
[
'Content-Type' => $output['file']['type'],