Skip to content

Commit 1262260

Browse files
committed
Minor numbering
1 parent 571b316 commit 1262260

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const cds = require("@sap/cds");
22

33
module.exports = class Service1 extends cds.ApplicationService {
44
init() {
5-
/* ========== Service1 running query on the database service using `cds.run` and friends using Fluent API ========== */
5+
/* ========== 1. Service1 running query on the database service using `cds.run` and friends using Fluent API ========== */
66
this.on("send11", async (req) => {
77
const { id } = req.data;
88
const query = SELECT.from`Entity1`.where("ID=" + id);
@@ -34,7 +34,7 @@ module.exports = class Service1 extends cds.ApplicationService {
3434
cds.delete("Entity1").where("ID =" + id);
3535
});
3636

37-
/* ========== Service1 running query on itself by `await`-ing the query ========== */
37+
/* ========== 2. Service1 running query on itself by `await`-ing the query ========== */
3838
this.on("send21", async (req) => {
3939
const { id } = req.data;
4040
const { Service1Entity } = this.entities;
@@ -65,7 +65,7 @@ module.exports = class Service1 extends cds.ApplicationService {
6565
await DELETE.from(Service1Entity).where("ID =" + id);
6666
});
6767

68-
/* ========== Service1 running query on itself using `this.run` and friends using Fluent API ========== */
68+
/* ========== 3. Service1 running query on itself using `this.run` and friends using Fluent API ========== */
6969
this.on("send31", async (req) => {
7070
const { id } = req.data;
7171
const query = SELECT.from`Service1Entity`.where("ID=" + id);
@@ -97,7 +97,7 @@ module.exports = class Service1 extends cds.ApplicationService {
9797
this.delete(`Service1Entity`).where("ID =" + id);
9898
});
9999

100-
/* ========== Service1 running query on Service2 using `Service2.run` and friends ========== */
100+
/* ========== 4. Service1 running query on Service2 using `Service2.run` and friends ========== */
101101
this.on("send41", async (req) => {
102102
const { id } = req.data;
103103
const { Service2 } = await cds.connect.to("Service2");

0 commit comments

Comments
 (0)