改进 保存
This commit is contained in:
parent
28b6a9dd50
commit
ece91f3687
@ -103,7 +103,10 @@ public function markAsRead(): bool
|
||||
$this->status = 'user_read';
|
||||
}
|
||||
|
||||
$this->save();
|
||||
// if status is dirty, save it
|
||||
if ($this->isDirty('status')) {
|
||||
$this->save();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user