Remove unneeded relation

[MAILPOET-2439]
This commit is contained in:
Pavel Dohnal
2019-10-24 13:50:14 +02:00
committed by Jack Kitterhing
parent 6b338a14fc
commit 4c960a1a44

View File

@ -47,16 +47,6 @@ class ScheduledTask extends Model {
);
}
/** @return StatsNotification */
function statsNotification() {
$model = $this->hasOne(
StatsNotification::class,
'task_id',
'id'
);
return $model;
}
function pause() {
$this->set('status', self::STATUS_PAUSED);
$this->save();