fix grant props

This commit is contained in:
xiaomlove
2022-09-08 01:42:59 +08:00
parent 2511933033
commit 21d93cbc0b
6 changed files with 31 additions and 10 deletions

View File

@@ -287,8 +287,10 @@ class UserProfile extends Page
try {
if (!empty($data['duration'])) {
$data['deadline'] = now()->addDays($data['duration']);
} else {
$data['deadline'] = null;
}
$rep->addMeta($this->record, $data);
$rep->addMeta($this->record, $data, $data);
$this->notify('success', 'Success!');
$this->emitSelf(self::EVENT_RECORD_UPDATED, $this->record->id);
} catch (\Exception $exception) {