Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 6dc1da2

Browse files
committed
Reverting removal of cds.service.providers
1 parent 65eccfa commit 6dc1da2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inspectr/srv/data-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = { DataService }
5252

5353
/** @returns {cds.Service} */
5454
function findDataSource(dataSourceName, entityName) {
55-
for (let srv of Object.values(cds.services)) { // all connected services
55+
for (let srv of cds.service.providers) { // all connected services
5656
if (!srv.name) continue // FIXME intermediate/pending in cds.services ?
5757
if (dataSourceName === srv.name || entityName.startsWith(srv.name+'.')) {
5858
log._debug && log.debug(`using ${srv.name} as data source`)

0 commit comments

Comments
 (0)