mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix addMeta deadine
This commit is contained in:
@@ -278,11 +278,6 @@ class UserProfile extends ViewRecord
|
||||
->action(function ($data) {
|
||||
$rep = $this->getRep();
|
||||
try {
|
||||
if (!empty($data['duration'])) {
|
||||
$data['deadline'] = now()->addDays($data['duration']);
|
||||
} else {
|
||||
$data['deadline'] = null;
|
||||
}
|
||||
$rep->addMeta($this->record, $data, $data);
|
||||
$this->notify('success', 'Success!');
|
||||
$this->emitSelf(self::EVENT_RECORD_UPDATED, $this->record->id);
|
||||
|
||||
Reference in New Issue
Block a user