Skip to content

Commit 1f9e012

Browse files
authored
Merge pull request #85 from mariopro/mariopro-patch-1
fix: Refactor emailTo request handling
2 parents 85abe74 + ff6bdb1 commit 1f9e012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/DataTableExportJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function handle(): void
198198
Storage::disk($this->getS3Disk())->putFileAs('', (new File($path)), $filename);
199199
}
200200

201-
$emailTo = request('emailTo');
201+
$emailTo = request()->emailTo;
202202
if ($emailTo && is_string($emailTo)) {
203203
$data = ['email' => urldecode($emailTo), 'path' => $path];
204204
$this->sendResults($data);

0 commit comments

Comments
 (0)