playov2-js-utilities 0.3.12 → 0.3.13
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.
|
@@ -101,7 +101,7 @@ const _getHTTPTaskTTL = (ttl) => {
|
|
|
101
101
|
const currentTimestamp = new Date().getTime()
|
|
102
102
|
const providedTTLTimestamp = new Date(ttl).getTime();
|
|
103
103
|
|
|
104
|
-
if (
|
|
104
|
+
if (providedTTLTimestamp > currentTimestamp) {
|
|
105
105
|
return Math.min(providedTTLTimestamp, MAX_HTTP_TASK_TTL) * 1000000
|
|
106
106
|
}
|
|
107
107
|
|