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),
|
ok: !!(agentId && sellId),
|
||||||
status: agentId && sellId ? 200 : 500,
|
status: agentId && sellId ? 200 : 500,
|
||||||
data: {
|
data: {
|
||||||
productIdAgentPrice: agentId,
|
|
||||||
productIdSellPrice: sellId,
|
productIdSellPrice: sellId,
|
||||||
|
productIdAgentPrice: agentId,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
// flowAccount PUT edit Product
|
// flowAccount PUT edit Product
|
||||||
async editProducts(sellPriceId: String, agentPriceId: String, body: JsonObject) {
|
async editProducts(sellPriceId: String, agentPriceId: String, body: JsonObject) {
|
||||||
console.log("body: ", body);
|
|
||||||
const { token } = await flowAccountAPI.auth();
|
const { token } = await flowAccountAPI.auth();
|
||||||
|
|
||||||
const commonBody = {
|
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(sellPriceId, body.price, /true/.test(`${body.vatIncluded}`)),
|
||||||
editProduct(agentPriceId, body.agentPrice, /true/.test(`${body.agentPriceVatIncluded}`)),
|
editProduct(agentPriceId, body.agentPrice, /true/.test(`${body.agentPriceVatIncluded}`)),
|
||||||
]);
|
]);
|
||||||
|
|
@ -550,8 +549,8 @@ const flowAccount = {
|
||||||
ok: !!(agentId && sellId),
|
ok: !!(agentId && sellId),
|
||||||
status: agentId && sellId ? 200 : 500,
|
status: agentId && sellId ? 200 : 500,
|
||||||
data: {
|
data: {
|
||||||
productIdAgentPrice: agentId,
|
|
||||||
productIdSellPrice: sellId,
|
productIdSellPrice: sellId,
|
||||||
|
productIdAgentPrice: agentId,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue