Overrite the email notification for backup

This commit is contained in:
Alex
2025-11-05 19:14:55 +02:00
parent 935fe06f9e
commit d2953e9409
5 changed files with 322 additions and 27 deletions

View File

@@ -65,7 +65,10 @@ class BackupsController extends ApiController
{
$this->authorize('manage backups');
dispatch(new CreateBackupJob($request->all()))->onQueue(config('backup.queue.name'));
$data = $request->all();
$data['company'] = $request->header('company');
dispatch(new CreateBackupJob($data))->onQueue(config('backup.queue.name'));
return $this->respondSuccess();
}