jetcheck 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/services/builtin/ovh.js
CHANGED
|
@@ -53,7 +53,7 @@ module.exports = async function (kernel) {
|
|
|
53
53
|
|
|
54
54
|
var found = null
|
|
55
55
|
const list = await ctrl.get(`/domain/zone/${task.zone}/record?subDomain=${task.config.subDomain || ""}`)
|
|
56
|
-
if (Array.isArray(list)) {
|
|
56
|
+
if (Array.isArray(list?.data)) {
|
|
57
57
|
for (var item of list.data) {
|
|
58
58
|
const info = await ctrl.get(`/domain/zone/be-ys.io/record/${item}`)
|
|
59
59
|
|
|
@@ -88,7 +88,7 @@ module.exports = async function (kernel) {
|
|
|
88
88
|
|
|
89
89
|
var found = null
|
|
90
90
|
const list = await ctrl.get(`/domain/zone/${task.zone}/record`)
|
|
91
|
-
if (Array.isArray(list)) {
|
|
91
|
+
if (Array.isArray(list?.data)) {
|
|
92
92
|
for (var item of list.data) {
|
|
93
93
|
const info = await ctrl.get(`/domain/zone/${task.zone}/record/${item}`)
|
|
94
94
|
|