mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Track IP for scheduled report
This commit is contained in:
parent
0c95b13693
commit
464e0b95e0
@ -162,6 +162,7 @@ class ReportController extends BaseController
|
||||
$schedule->config = json_encode($options);
|
||||
$schedule->frequency = request('frequency');
|
||||
$schedule->send_date = Utils::toSqlDate(request('send_date'));
|
||||
$schedule->ip = request()->getClientIp();
|
||||
$schedule->save();
|
||||
|
||||
session()->flash('message', trans('texts.created_scheduled_report'));
|
||||
|
@ -132,6 +132,10 @@ class AddMoreCustomFields extends Migration
|
||||
$table->text('custom_value2')->nullable()->change();
|
||||
});
|
||||
|
||||
Schema::table('scheduled_reports', function ($table) {
|
||||
$table->string('ip')->nullable();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user