You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this happens because their hasThenMethodchecks if .then property has ts.SymbolFlags.Method flag set which won't be in our case because we use a callable interface for the then property of QueryBuilder so then technically doesn't qualify as a method.
Maybe report this in the SonarTS repo with a minimal reproducer like:
Environment
Knex version: 0.20.1
Database + version: Postgres 11.4
OS: Ubuntu 18.04
If issue is about TypeScript definitions, tag @lorefnon
This might be considered a duplicate of #3515, two sides of the same coin sort of deal
Bug
Awaiting on querybuilders/raw queries violates no-invalid-await rule in tslint-sonarts. This worked on 0.19.2 but not on 0.20.1
Refactor this redundant 'await' on a non-promise. (no-invalid-await)
await knex('users').select('*').limit(1);
The text was updated successfully, but these errors were encountered: