repositories cleanup and cs fix

This commit is contained in:
Yuri Kuznetsov
2021-04-21 13:03:53 +03:00
parent 9b1ae75a00
commit 2ff7825b34
12 changed files with 27 additions and 55 deletions
+1 -4
View File
@@ -40,10 +40,6 @@ class Job extends \Espo\Core\Repositories\Database implements
protected $hooksDisabled = true;
protected $processFieldsAfterSaveDisabled = true;
protected $processFieldsAfterRemoveDisabled = true;
public function beforeSave(Entity $entity, array $options = [])
{
if (!$entity->has('executeTime') && $entity->isNew()) {
@@ -52,6 +48,7 @@ class Job extends \Espo\Core\Repositories\Database implements
if (!$entity->has('attempts') && $entity->isNew()) {
$attempts = $this->config->get('jobRerunAttemptNumber', 0);
$entity->set('attempts', $attempts);
}
}