This commit is contained in:
D065023
2019-12-23 10:12:00 +01:00
parent e16a343ce3
commit 4bc2257cea

View File

@@ -14,8 +14,8 @@ module.exports = cds.service.impl(async () => {
console.log('Delegating to S/4 bupa service...') console.log('Delegating to S/4 bupa service...')
const UsersAddresses = SELECT.from(externalAddresses).where({ const UsersAddresses = SELECT.from(externalAddresses).where({
contact: req.user.id contact: req.user.id
}) }).where(req.query.SELECT.where)
return bupa.tx(req).run(UsersAddresses.where(req.query.SELECT.where)) return bupa.tx(req).run(UsersAddresses)
}) })
// Replicate chosen addresses from S/4 when filing orders. // Replicate chosen addresses from S/4 when filing orders.