Scenario에서 event를 추가할때 json_encode를 빼먹은 점 수정

This commit is contained in:
2018-03-29 00:38:55 +09:00
parent e56a2fa6fa
commit 39f6056e94
+7
View File
@@ -329,6 +329,13 @@ class Scenario{
$event->tryRunEvent($env);
}
$events = array_map(function($rawEvent){
return [
'cond'=>Json::encode($rawEvent['cond']),
'action'=>Json::encode($rawEvent['action'])
];
}, $this->events);
$db->insert('event', $this->events);
}