We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477f32c commit 9019879Copy full SHA for 9019879
javascript/ql/lib/semmle/javascript/frameworks/Nest.qll
@@ -523,10 +523,10 @@ module NestJS {
523
result = tuple.getAPropertyWrite("useClass").getRhs()
524
or
525
exists(DataFlow::FunctionNode f |
526
- f = tuple.getAPropertyWrite("useFactory").getRhs().getALocalSource() and
+ f = tuple.getAPropertyWrite("useFactory").getRhs().getAFunctionValue() and
527
result.getAstNode() = f.getFunction().getAReturnedExpr().getType().(ClassType).getClass()
528
)
529
- or
+ or
530
result.getAstNode() =
531
tuple.getAPropertyWrite("useValue").getRhs().asExpr().getType().(ClassType).getClass()
532
}
0 commit comments