This commit is contained in:
2024-01-10 17:35:55 +08:00
parent 1066aa03e8
commit 88fb563c99
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ class Model extends Base\Model
*/
public function update(array $params): static|bool
{
if (!$this->validator($this->rules()) || !$this->beforeSave($this)) {
if (!$this->validator($this->rules(), $params) || !$this->beforeSave($this)) {
return FALSE;
}
return $this->updateInternal(...$this->arrayIntersect($params));