From d71045babca63ab88ab5b4d0d01d00d4a6820a5e Mon Sep 17 00:00:00 2001 From: Daniel Hutzel Date: Fri, 8 Dec 2023 15:25:31 +0100 Subject: [PATCH] . --- lib/monkey-patch-cds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/monkey-patch-cds.js b/lib/monkey-patch-cds.js index 53a3b2a0..37a0d3c3 100644 --- a/lib/monkey-patch-cds.js +++ b/lib/monkey-patch-cds.js @@ -3,7 +3,7 @@ const cds = require("@sap/cds/lib") const unfold = require("./compile/unfold") cds.compile.for.nodejs cds.compile.for.nodejs = csn => { - _plain_csn = cds.clone(csn) + _plain_csn ??= cds.compile(cds.clone(csn)) return unfold(csn,'assocs','structs') }