Implement eventing

This commit is contained in:
Uwe Klinger
2021-05-05 08:07:48 +02:00
parent 8601bd8a46
commit 278258c436
5 changed files with 26 additions and 12 deletions

View File

@@ -1,5 +1,7 @@
const deploy = require("@sap/cds/lib/deploy");
// TODO: https://github.wdf.sap.corp/cdx/cds/pull/1949
const DEBUG = (...args) => console.log(...args);
deploy.exclude_external_entities_in = function (csn, _bound) {
@@ -12,8 +14,6 @@ deploy.exclude_external_entities_in = function (csn, _bound) {
DEBUG && DEBUG("excluding external entities for", service, "...");
const prefix = service + ".";
for (let each in csn.definitions) {
const def = csn.definitions[each];
if (def["@cds.persistence.table"] === true) continue;
if (each.startsWith(prefix)) {
DEBUG && DEBUG("excluding external entity", each);
_exclude(each);