dt-common-device 9.1.3 → 9.1.5
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.
|
@@ -155,11 +155,12 @@ class QueueUtils {
|
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
checkJob();
|
|
158
|
+
const waitTime = queueKey.includes("cloudbeds") ? 180000 : 60000;
|
|
158
159
|
// Backup timeout
|
|
159
160
|
setTimeout(() => {
|
|
160
161
|
clearTimeout(timeoutId);
|
|
161
162
|
reject(new Error("Request timeout: Maximum wait time exceeded"));
|
|
162
|
-
},
|
|
163
|
+
}, waitTime);
|
|
163
164
|
});
|
|
164
165
|
}
|
|
165
166
|
}
|
|
@@ -39,8 +39,8 @@ class RateLimitUtils {
|
|
|
39
39
|
provider: constants_1.CONNECTION_PROVIDERS.SENSIBO,
|
|
40
40
|
});
|
|
41
41
|
configs.set(constants_1.CONNECTION_PROVIDERS.CLOUDBEDS, {
|
|
42
|
-
maxRequests:
|
|
43
|
-
windowMs:
|
|
42
|
+
maxRequests: 8,
|
|
43
|
+
windowMs: 1000, // 1 second - CloudBed allows 10 requests per second
|
|
44
44
|
provider: constants_1.CONNECTION_PROVIDERS.CLOUDBEDS,
|
|
45
45
|
});
|
|
46
46
|
configs.set(constants_1.CONNECTION_PROVIDERS.STAYNTOUCH, {
|