prettier
This commit is contained in:
@@ -12,11 +12,7 @@ module.exports = cds.service.impl(async () => {
|
|||||||
// Delegate ValueHelp requests to S/4 backend, fetching current user's addresses from there
|
// Delegate ValueHelp requests to S/4 backend, fetching current user's addresses from there
|
||||||
admin.on('READ', 'Addresses', req => {
|
admin.on('READ', 'Addresses', req => {
|
||||||
console.log('Delegating to S/4 bupa service...')
|
console.log('Delegating to S/4 bupa service...')
|
||||||
const UsersAddresses = SELECT.from(externalAddresses)
|
const UsersAddresses = SELECT.from(externalAddresses).where({ contact: req.user.id }).where(req.query.SELECT.where)
|
||||||
.where({
|
|
||||||
contact: req.user.id
|
|
||||||
})
|
|
||||||
.where(req.query.SELECT.where)
|
|
||||||
return bupa.tx(req).run(UsersAddresses)
|
return bupa.tx(req).run(UsersAddresses)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user