Commit 43c2ad1f authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавили вызов отдельного метода для выполнения действий ПОСЛЕ подписки на БЛОг

parent 69102747
...@@ -159,7 +159,10 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -159,7 +159,10 @@ class Bid extends \common\components\ActiveRecordModel
/** @var User $user */ /** @var User $user */
$user = User::find()->where(['email' => $this->email])->one(); $user = User::find()->where(['email' => $this->email])->one();
if (!is_null($user)) { if (!is_null($user)) {
$user->afterSubscribe(['email' => $this->email], true); if ($this->blog===false)
$user->afterSubscribe(['email' => $this->email], true);
else
$user->afterSubscribeToBlog(['email' => $this->email], true);
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment