- Changes newsletter object to array in SendingQueue router

- Schedules post notification right after its creation
This commit is contained in:
Vlad
2016-05-17 15:27:42 -04:00
parent d2a6b6bd4e
commit 8540c51679
3 changed files with 22 additions and 16 deletions

View File

@@ -56,6 +56,8 @@ class Scheduler {
}
$relation->value = $schedule;
$relation->save();
return Newsletter::filter('filterWithOptions')
->findOne($newsletter_id)->asArray();
}
static function schedulePostNotification($post_id) {