From f9a9933ee7c52c609d1acea1090f27dd3bb93954 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 15 Sep 2023 03:25:47 +0300 Subject: [PATCH] update api --- src/crontab/export/push.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/crontab/export/push.php b/src/crontab/export/push.php index 00d8171..7415923 100644 --- a/src/crontab/export/push.php +++ b/src/crontab/export/push.php @@ -298,28 +298,28 @@ if (API_EXPORT_PUSH_ENABLED) if ($manifest = @json_decode(@file_get_contents($node->manifest))) { // API channel not exists - if (empty($manifest->api)) + if (empty($manifest->import)) { continue; } // Push API channel not exists - if (empty($manifest->api->push)) + if (empty($manifest->import->push)) { continue; } // Send push request - $debug['result'][$manifest->api->push]['request'] = $request; + $debug['result'][$manifest->import->push]['request'] = $request; - $curl = new Curl($manifest->api->push, $request); + $curl = new Curl($manifest->import->push, $request); if ($response = $curl->getResponse()) { - $debug['result'][$manifest->api->push]['response'] = $response; + $debug['result'][$manifest->import->push]['response'] = $response; } - $debug['result'][$manifest->api->push]['code'] = $curl->getCode(); + $debug['result'][$manifest->import->push]['code'] = $curl->getCode(); } }