Skip to content

Commit 2e56ae0

Browse files
committed
Fix numbering and remove duplicate case
1 parent 7652149 commit 2e56ae0

File tree

1 file changed

+1
-8
lines changed
  • javascript/frameworks/cap/test/queries/cqlinjection/srv

1 file changed

+1
-8
lines changed

javascript/frameworks/cap/test/queries/cqlinjection/srv/service1.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,13 @@ module.exports = class Service1 extends cds.ApplicationService {
174174
});
175175

176176
/* ========== 8. Service1 running query on Service2 using an unparsed CDL string (only valid in old versions of CAP) ========== */
177-
this.on("send71", async (req) => {
177+
this.on("send81", async (req) => {
178178
const { id } = req.data;
179179
const Service2 = await cds.connect.to("Service2");
180180
const query = "SELECT * from Entity1 where ID =" + id;
181181
Service2.run(query);
182182
});
183183

184-
this.on("send72", async (req) => {
185-
const { id } = req.data;
186-
const Service2 = await cds.connect.to("Service2");
187-
const query = `SELECT * from Entity1 where ID =` + id;
188-
Service2.run(query);
189-
});
190-
191184
/* ========== 9. Service1 running query on Service2 using `Service2.tx( tx => tx.run(...) )` and friends ========== */
192185
this.on("send91", async (req) => {
193186
const { id } = req.data;

0 commit comments

Comments
 (0)