File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
javascript/frameworks/cap/test/queries/cqlinjection/srv Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments