skip k6 api batch update when batch create fails (#38282)
This commit is contained in:
commit
c190f971b1
|
@ -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 () {
|
group( 'API Batch Update Orders', function () {
|
||||||
let updateBatchItem;
|
let updateBatchItem;
|
||||||
|
|
||||||
|
if ( ! post_ids ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for ( let index = 0; index < batchSize; index++ ) {
|
for ( let index = 0; index < batchSize; index++ ) {
|
||||||
updateBatchItem = {
|
updateBatchItem = {
|
||||||
id: `${ post_ids[ index ] }`,
|
id: `${ post_ids[ index ] }`,
|
||||||
|
|
Loading…
Reference in New Issue