Skip to content

Commit afa8807

Browse files
committed
fix: update usageplan & auth logic
1 parent 2a257d5 commit afa8807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,15 +280,15 @@ const prepareInputs = async (instance, credentials, inputs = {}) => {
280280
}
281281
}
282282
]
283-
if (apigatewayConf.usagePlan && apigatewayConf.usagePlan !== {}) {
283+
if (apigatewayConf.usagePlan) {
284284
apigatewayConf.endpoints[0].usagePlan = {
285285
usagePlanId: apigatewayConf.usagePlan.usagePlanId,
286286
usagePlanName: apigatewayConf.usagePlan.usagePlanName,
287287
usagePlanDesc: apigatewayConf.usagePlan.usagePlanDesc,
288288
maxRequestNum: apigatewayConf.usagePlan.maxRequestNum
289289
}
290290
}
291-
if (apigatewayConf.auth && apigatewayConf.auth !== {}) {
291+
if (apigatewayConf.auth) {
292292
apigatewayConf.endpoints[0].auth = {
293293
secretName: apigatewayConf.auth.secretName,
294294
secretIds: apigatewayConf.auth.secretIds

0 commit comments

Comments
 (0)