rm console.log
This commit is contained in:
@@ -28,7 +28,6 @@ async function _readAddresses (req) {
|
|||||||
}
|
}
|
||||||
const result = await tx.run(ql)
|
const result = await tx.run(ql)
|
||||||
delete result.BusinessPartner
|
delete result.BusinessPartner
|
||||||
console.log(result)
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ async function _getBusinessPartnerID (req) {
|
|||||||
|
|
||||||
/** Fill Address data from external service */
|
/** Fill Address data from external service */
|
||||||
async function _fillAddress (req) {
|
async function _fillAddress (req) {
|
||||||
console.log('retrieving addresses')
|
|
||||||
if (req.data.shippingAddress_AddressID) {
|
if (req.data.shippingAddress_AddressID) {
|
||||||
const businessPartnerID = await _getBusinessPartnerID(req)
|
const businessPartnerID = await _getBusinessPartnerID(req)
|
||||||
const tx = bupaSrv.transaction(req)
|
const tx = bupaSrv.transaction(req)
|
||||||
@@ -57,7 +55,6 @@ async function _fillAddress (req) {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
if (response && response.length > 0) {
|
if (response && response.length > 0) {
|
||||||
console.log('filling addresses')
|
|
||||||
const tx2 = cds.transaction(req)
|
const tx2 = cds.transaction(req)
|
||||||
try {
|
try {
|
||||||
await tx2.run(INSERT.into(ShippingAddresses).entries(response))
|
await tx2.run(INSERT.into(ShippingAddresses).entries(response))
|
||||||
|
|||||||
Reference in New Issue
Block a user