fix(AWS Deploy): Fix resolution of SLS_AWS_REQUEST_MAX_RETRIES setting

This commit is contained in:
Mariusz Nowak 2020-07-16 10:34:05 +02:00
parent ade0b3a25c
commit 4d1b3b571d
No known key found for this signature in database
GPG Key ID: A292FE0143B1828B

View File

@ -22,7 +22,7 @@ const constants = {
PromiseQueue.configure(BbPromise.Promise);
const MAX_RETRIES = Math.min(Number(process.env.SLS_AWS_REQUEST_MAX_RETRIES), 0) || 4;
const MAX_RETRIES = Math.max(Number(process.env.SLS_AWS_REQUEST_MAX_RETRIES), 0) || 4;
const impl = {
/**