Add test and remove redundant call

[MAILPOET-1560]
This commit is contained in:
Pavel Dohnal
2018-11-12 08:32:54 +01:00
parent 75295e55c2
commit 5e16bc4184
2 changed files with 26 additions and 5 deletions

View File

@ -507,10 +507,6 @@ class Newsletters extends APIEndpoint {
Scheduler::processPostNotificationSchedule($newsletter);
}
if($newsletter->type === Newsletter::TYPE_NOTIFICATION) {
Scheduler::createPostNotificationSendingTask($newsletter);
}
return $this->successResponse(
Newsletter::findOne($newsletter->id)->asArray()
);