chore: clean
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s

This commit is contained in:
HAM 2025-09-12 15:29:52 +07:00
parent 61825309d1
commit d51531cd4d

View file

@ -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,
},
};
},