Skip to content

Commit 3b10a3a

Browse files
authored
Update cds-plugin.js
1 parent 9d8e560 commit 3b10a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cds-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ cds.once("served", async () => {
4848
const actionName = boundAction.name.split('.').pop();
4949

5050
// Register for print related handling
51+
const printer = await cds.connect.to("print");
5152
srv.after(actionName, async (results, req) => {
52-
const printer = await cds.connect.to("print");
5353
return printer.print(req);
5454
});
5555
}

0 commit comments

Comments
 (0)