translations

This commit is contained in:
D065023
2019-12-06 11:03:59 +01:00
parent 7deae997bb
commit 68ee29598a
3 changed files with 3 additions and 3 deletions

View File

@@ -90,13 +90,11 @@ async function _fillAddress (req) {
})
)
if (response && response.length > 0) {
console.log('to be inserted: ', response)
const tx2 = cds.transaction(req)
try {
await tx2.run(INSERT.into(ShippingAddresses).entries(response))
} catch (e) {
// already in there
console.log(e)
}
} else {
req.error('Shipping address not found.')