Commit 5694b18b authored by Shakarim Sapa's avatar Shakarim Sapa

- Debugg

parent eeb10a63
......@@ -243,12 +243,13 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
$sendExist = TriggerSchedule::find()->where(['trigger_id'=>$this->id, 'email'=>$email])->exists();
if (array_key_exists('unique', $params) && $params['unique']==true)
if (array_key_exists('unique', $params) && $params['unique']==true && $sendExist==true)
$sendExist = false;
if (!$sendExist) {
echo "QWE";
return TriggerSchedule::sendMessage($email, $this->message_template_id, $templateData, $this->id);
} else {
echo "QWE";die;
}
}
}
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