Skip to content

Commit f850a0f

Browse files
committed
fix performance widgets columns
1 parent 68eed77 commit f850a0f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lhc_web/modules/lhcron/stats/performance.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function departmentStats($regenerate = false) {
109109
$filterAART['group'] = 'dep_id';
110110
$filterAART['filterlt']['wait_time'] = 600;
111111
$filterAART['filtergt']['user_id'] = 0;
112-
$result['aart'] = erLhcoreClassModelChat::getCount(
112+
$result['wt'] = erLhcoreClassModelChat::getCount(
113113
$filterAART, // $params
114114
'', // $operattion
115115
false, // $field
@@ -384,13 +384,13 @@ public static function operatorsStats($regenerate = false) {
384384
break;
385385
case 'frt':
386386
$filterAART = $filter;
387-
$filterAART['group'] = 'dep_id';
387+
$filterAART['group'] = 'user_id';
388388
$filterAART['filtergt']['frt'] = 0;
389389
$result['frt'] = \LiveHelperChat\Models\LHCAbstract\ChatParticipant::getCount(
390390
$filterAART, // $params
391391
'', // $operattion
392392
false, // $field
393-
'dep_id, AVG(frt) as frt', // $rawSelect
393+
'user_id, AVG(frt) as frt', // $rawSelect
394394
false, // $fetchColumn
395395
true // $fetchAll
396396
);

0 commit comments

Comments
 (0)