Skip to content

Commit

Permalink
Bigfix
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jul 11, 2023
1 parent 043e16d commit 381a1e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/lhelasticsearchstatistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,11 @@ public static function statisticGetnumberofchatspermonth($params, $aggr = 'month
$numberOfChats[$keyDateUnix]['msg_bot'] = 0;
}

if (is_array($params['params_execution']['charttypes']) && in_array('msgtype', $params['params_execution']['charttypes'])) {
if (is_array($params['params_execution']['charttypes']) &&
in_array('msgtype', $params['params_execution']['charttypes']) ||
in_array('msgdelop', $params['params_execution']['charttypes']) ||
in_array('msgdelbot', $params['params_execution']['charttypes'])
) {
$sparams = array();
$sparams['index'] = erLhcoreClassModule::getExtensionInstance('erLhcoreClassExtensionElasticsearch')->settings['index_search'] . '-' . erLhcoreClassModelESMsg::$elasticType;
$sparams['ignore_unavailable'] = true;
Expand Down

0 comments on commit 381a1e2

Please sign in to comment.