diff --git a/src/services/flowaccount.ts b/src/services/flowaccount.ts index df20be0..49060e0 100644 --- a/src/services/flowaccount.ts +++ b/src/services/flowaccount.ts @@ -487,15 +487,14 @@ const flowAccount = { ok: !!(agentId && sellId), status: agentId && sellId ? 200 : 500, data: { - productIdAgentPrice: agentId, productIdSellPrice: sellId, + productIdAgentPrice: agentId, }, }; }, // flowAccount PUT edit Product async editProducts(sellPriceId: String, agentPriceId: String, body: JsonObject) { - console.log("body: ", body); const { token } = await flowAccountAPI.auth(); const commonBody = { @@ -541,7 +540,7 @@ const flowAccount = { } }; - const [agentId, sellId] = await Promise.all([ + const [sellId, agentId] = await Promise.all([ editProduct(sellPriceId, body.price, /true/.test(`${body.vatIncluded}`)), editProduct(agentPriceId, body.agentPrice, /true/.test(`${body.agentPriceVatIncluded}`)), ]); @@ -550,8 +549,8 @@ const flowAccount = { ok: !!(agentId && sellId), status: agentId && sellId ? 200 : 500, data: { - productIdAgentPrice: agentId, productIdSellPrice: sellId, + productIdAgentPrice: agentId, }, }; },