From 95b960783fdd017cdd45f66a30e57736a58604e0 Mon Sep 17 00:00:00 2001 From: cconard96 Date: Wed, 4 Nov 2020 19:56:39 -0500 Subject: [PATCH] Fix table name --- inc/devicesync.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/devicesync.class.php b/inc/devicesync.class.php index 901356a..816150c 100644 --- a/inc/devicesync.class.php +++ b/inc/devicesync.class.php @@ -180,7 +180,7 @@ public static function syncAll(): int static::syncExtensionAttributeDefinitions(); $iterator = $DB->request([ 'SELECT' => ['itemtype', 'items_id'], - 'FROM' => (static::$jamfplugin_itemtype)::getTable(), + 'FROM' => 'glpi_plugin_jamf_devices', 'WHERE' => [ new QueryExpression("sync_date < NOW() - INTERVAL {$config['sync_interval']} MINUTE") ]