File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ export class QueryExporter {
328328 log ( this . exportQueryConfig , `Processing assets in ${ totalBatches } batches of ${ batchSize } ` , 'info' ) ;
329329
330330 // Process assets in batches
331- for ( let i = 0 ; i < batchSize ; i ++ ) {
331+ for ( let i = 0 ; i < totalBatches ; i ++ ) {
332332 const start = i * batchSize ;
333333 const end = Math . min ( start + batchSize , assetUIDs . length ) ;
334334 const batchAssetUIDs = assetUIDs . slice ( start , end ) ;
@@ -394,11 +394,6 @@ export class QueryExporter {
394394
395395 // Optional: Add delay between batches to avoid rate limiting
396396 if ( i < totalBatches - 1 && this . exportQueryConfig . batchDelayMs ) {
397- log (
398- this . exportQueryConfig ,
399- `Waiting ${ this . exportQueryConfig . batchDelayMs } ms before next batch...` ,
400- 'info' ,
401- ) ;
402397 await new Promise ( ( resolve ) => setTimeout ( resolve , this . exportQueryConfig . batchDelayMs ) ) ;
403398 }
404399 }
You can’t perform that action at this time.
0 commit comments