From 254bb40e38d26614ac4c82a3c55cf8ad9fa205d2 Mon Sep 17 00:00:00 2001 From: Uwe Klinger Date: Wed, 19 May 2021 10:22:52 +0200 Subject: [PATCH] Remove monkey patch and profile destination --- suppliers/monkey-patch.js | 3 +++ suppliers/package.json | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/suppliers/monkey-patch.js b/suppliers/monkey-patch.js index 139502ad..0696705d 100644 --- a/suppliers/monkey-patch.js +++ b/suppliers/monkey-patch.js @@ -2,6 +2,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) { @@ -36,3 +37,5 @@ deploy.exclude_external_entities_in = function (csn, _bound) { } } }; + +*/ \ No newline at end of file diff --git a/suppliers/package.json b/suppliers/package.json index d523c66d..5bcec8ef 100644 --- a/suppliers/package.json +++ b/suppliers/package.json @@ -15,12 +15,13 @@ }, "cds": { "requires": { - "API_BUSINESS_PARTNER": { - "kind": "odata", - "model": "srv/external/API_BUSINESS_PARTNER", - "credentials": { - "destination": "blub", - "url": "http://localhost:3333" + "[with-destination]": { + "API_BUSINESS_PARTNER": { + "kind": "odata", + "model": "srv/external/API_BUSINESS_PARTNER", + "credentials": { + "destination": "" + } } }, "[development]": {