BaseConsole::FG_GREEN
);
$sentStatusKogort = SentKogort::find()
- ->select('phones')
+ ->select('phone')
->where(['kogort_date' => $kogortDate])
- ->andWhere(['target' => $targetDate])
+ ->andWhere(['target_date' => $targetDate])
->andWhere(['status' => 2])
->column();
if ($i == 0) {
$sentStatusKogort = SentKogort::find()
- ->select('phones')
+ ->select('phone')
->where(['kogort_date' => $kogortDate])
- ->andWhere(['target' => $targetDate])
+ ->andWhere(['target_date' => $targetDate])
->andWhere(['status' => 3])
->column();
// Выбираем номера для отправки через бота