File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ class Apigw {
229
229
secretIds : uniqSecretIds ,
230
230
limit : uniqSecretIds . length
231
231
} )
232
+
232
233
const existKeysLen = apiKeyStatusSet . length
233
234
234
235
const ids = [ ]
@@ -262,8 +263,6 @@ class Apigw {
262
263
}
263
264
264
265
async setupApiUsagePlan ( { usagePlan } ) {
265
- console . log ( 'usagePlan' , usagePlan )
266
-
267
266
const usageInputs = {
268
267
usagePlanName : usagePlan . usagePlanName || '' ,
269
268
usagePlanDesc : usagePlan . usagePlanDesc || '' ,
@@ -308,12 +307,17 @@ class Apigw {
308
307
offset
309
308
} )
310
309
if ( secretIdList . length < limit ) {
311
- return res
310
+ return secretIdList
312
311
}
313
- return getAllBoundSecrets ( res , { limit, offset : offset + secretIdList . length } )
312
+ const more = await getAllBoundSecrets ( secretIdList , {
313
+ limit,
314
+ offset : offset + secretIdList . length
315
+ } )
316
+ return res . concat ( more . secretIdList )
314
317
}
315
318
const allBoundSecretObjs = await getAllBoundSecrets ( [ ] , { limit : 100 } )
316
319
const allBoundSecretIds = allBoundSecretObjs . map ( ( item ) => item . secretId )
320
+
317
321
const unboundSecretIds = secretIds . filter ( ( item ) => {
318
322
if ( allBoundSecretIds . indexOf ( item ) === - 1 ) {
319
323
return true
You can’t perform that action at this time.
0 commit comments