add yearly, weekly, daily, monthly-by-weekday frequencies (v1.1)
This commit is contained in:
@@ -74,8 +74,8 @@ class RecoRecoModel extends Base
|
||||
$meta = $this->taskMetadataModel->getAll($task_id);
|
||||
$frequency = isset($meta['recoreco_frequency']) ? $meta['recoreco_frequency'] : '';
|
||||
|
||||
// v0.3 handles monthly-by-day only; the rest arrive in v1.1.
|
||||
if ($frequency !== 'monthly_day') {
|
||||
// All five frequencies are supported since v1.1; skip anything unknown.
|
||||
if (! in_array($frequency, array('daily', 'weekly', 'monthly_day', 'monthly_dow', 'yearly'), true)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user