chore: clean
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
61825309d1
commit
d51531cd4d
1 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
},
|
||||
};
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue