diff --git a/module/action/model.php b/module/action/model.php index 836554e478..61f04dca2b 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1256,11 +1256,13 @@ class actionModel extends model * * @param string $objectType * @access public - * @return void + * @return bool */ - public function deleteByType(string $objectType) + public function deleteByType(string $objectType): bool { $this->dao->delete()->from(TABLE_ACTION)->where('objectType')->eq($objectType)->exec(); + + return !dao::isError(); } /**