reneme check new version job

This commit is contained in:
yuri
2018-01-29 13:35:33 +02:00
parent bc901fad0b
commit 30ce642d88
4 changed files with 7 additions and 7 deletions
@@ -31,7 +31,7 @@ namespace Espo\Jobs;
use Espo\Core\Exceptions;
class NewVersionChecker extends \Espo\Core\Jobs\Base
class CheckNewVersion extends \Espo\Core\Jobs\Base
{
public function run()
{
@@ -41,9 +41,9 @@ class NewVersionChecker extends \Espo\Core\Jobs\Base
$job = $this->getEntityManager()->getEntity('Job');
$job->set(array(
'name' => 'New Version Checker',
'name' => 'Check for New Version (job)',
'serviceName' => 'AdminNotifications',
'methodName' => 'newVersionChecker',
'methodName' => 'jobCheckNewVersion',
'executeTime' => $this->getRunTime()
));
@@ -19,7 +19,7 @@
"SendEmailReminders": "Send Email Reminders",
"AuthTokenControl": "Auth Token Control",
"SendEmailNotifications": "Send Email Notifications",
"NewVersionChecker": "New Version Checker"
"CheckNewVersion": "Check for New Version"
},
"cronSetup": {
"linux": "Note: Add this line to the crontab file to run Espo Scheduled Jobs:",
@@ -78,8 +78,8 @@
"isSystem": true,
"scheduling": "1 */12 * * *"
},
"NewVersionChecker": {
"name": "New Version Checker",
"CheckNewVersion": {
"name": "Check for New Version",
"isSystem": true,
"scheduling": "15 5 * * *"
}
@@ -31,7 +31,7 @@ namespace Espo\Services;
class AdminNotifications extends \Espo\Core\Services\Base
{
public function newVersionChecker($data)
public function jobCheckNewVersion($data)
{
$config = $this->getConfig();