Add test
[MAILPOET-1571]
This commit is contained in:
@ -32,6 +32,15 @@ class ScheduledTask extends Model {
|
||||
);
|
||||
}
|
||||
|
||||
/** @return StatsNotification */
|
||||
function statsNotification() {
|
||||
return $this->hasOne(
|
||||
StatsNotification::class,
|
||||
'task_id',
|
||||
'id'
|
||||
);
|
||||
}
|
||||
|
||||
function pause() {
|
||||
$this->set('status', self::STATUS_PAUSED);
|
||||
$this->save();
|
||||
|
Reference in New Issue
Block a user