Skip to content

Commit

Permalink
improve get data
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Aug 27, 2024
1 parent a8060c6 commit 6415e61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/class/ajaxSystem.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public static function sync() {
$eqLogic->setConfiguration('firmware', $hub_info['firmware']['version']);
$eqLogic->setLogicalId($hub['hubId']);
$eqLogic->save();
$eqLogic->refreshData();

$devices = self::request('/user/{userId}/hubs/' . $hub['hubId'] . '/devices');
log::add('ajaxSystem', 'debug', json_encode($devices));
Expand All @@ -185,6 +186,7 @@ public static function sync() {
$eqLogic->setConfiguration('firmware', $device_info['firmwareVersion']);
$eqLogic->setLogicalId($device['id']);
$eqLogic->save();
$eqLogic->refreshData();
}

$groups = self::request('/user/{userId}/hubs/' . $hub['hubId'] . '/groups');
Expand All @@ -204,6 +206,7 @@ public static function sync() {
$eqLogic->setConfiguration('device', 'group');
$eqLogic->setLogicalId($group['id']);
$eqLogic->save();
$eqLogic->refreshData();
}
}
}
Expand Down

0 comments on commit 6415e61

Please sign in to comment.