Skip to content

Commit d26d930

Browse files
committed
Minor relocation of a label
1 parent 16c6157 commit d26d930

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,9 @@ module.exports = class Service1 extends cds.ApplicationService {
592592
/* ========== 12. Service1 running query on the database service using `cds.db.tx( tx => tx.run(...) )` and friends ========== */
593593
this.on("send121", async (req) => {
594594
const { id } = req.data;
595-
const query = SELECT.from`Entity1`.where("ID=" + id); // UNSAFE: direct concatenation with `+`
595+
const query = SELECT.from`Entity1`.where("ID=" + id);
596596
cds.db.tx(async (tx) => {
597-
tx.run(query);
597+
tx.run(query); // UNSAFE: direct concatenation with `+`
598598
});
599599
});
600600

0 commit comments

Comments
 (0)