mirror of
https://github.com/crater-invoice/crater.git
synced 2026-02-06 10:41:43 -05:00
connect mail sender with api
This commit is contained in:
@@ -70,7 +70,13 @@ class MailSenderRequest extends FormRequest
|
||||
|
||||
public function getMailSenderPayload()
|
||||
{
|
||||
return collect($this->validated())
|
||||
$data = $this->validated();
|
||||
|
||||
if ($data['settings']['encryption'] == 'none') {
|
||||
$data['settings']['encryption'] = '';
|
||||
}
|
||||
|
||||
return collect($data)
|
||||
->merge([
|
||||
'company_id' => $this->header('company'),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user