skip k6 batch update when batch create fails
This commit is contained in:
parent
fabc728119
commit
36202d744d
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
skip k6 batch update when batch create fails
|
|
@ -186,6 +186,10 @@ export function ordersAPI() {
|
|||
group( 'API Batch Update Orders', function () {
|
||||
let updateBatchItem;
|
||||
|
||||
if ( ! post_ids ) {
|
||||
return;
|
||||
}
|
||||
|
||||
for ( let index = 0; index < batchSize; index++ ) {
|
||||
updateBatchItem = {
|
||||
id: `${ post_ids[ index ] }`,
|
||||
|
|
Loading…
Reference in New Issue