Adds automatic email type to newsletter model/API listing method

This commit is contained in:
Vlad
2018-03-29 16:32:03 -04:00
parent 4955673885
commit adbebb39f1
3 changed files with 8 additions and 5 deletions

View File

@ -377,7 +377,7 @@ class Newsletters extends APIEndpoint {
->withSegments(true)
->withSendingQueue()
->withStatistics();
} else if($newsletter->type === Newsletter::TYPE_WELCOME) {
} else if($newsletter->type === Newsletter::TYPE_WELCOME || $newsletter->type === Newsletter::TYPE_AUTOMATIC) {
$newsletter
->withOptions()
->withTotalSent()