Skip to content

Commit 16d0e47

Browse files
authored
update to on loaded (#33)
1 parent 20259d2 commit 16d0e47

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

cds-plugin.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,7 @@ const FILE_ELEMENT = "fileElement";
1111

1212
const LOG = cds.log("print");
1313

14-
cds.on("compile.for.runtime", (csn) => {
15-
enhanceModel(csn);
16-
});
17-
cds.on("compile.to.edmx", (csn) => {
18-
enhanceModel(csn);
19-
});
20-
cds.on("compile.to.dbx", (csn) => {
21-
enhanceModel(csn);
22-
});
14+
cds.on("loaded", enhanceModel);
2315

2416
cds.once("served", async () => {
2517
const printer = await cds.connect.to("PrintService");

0 commit comments

Comments
 (0)