Open knrdl opened 6 years ago
Currently the CountOptions look like this:
export interface CountOptions extends Logging, Transactionable, Filterable, Projectable { /** * Include options. See `find` for details */ include?: Includeable[] /** * Apply COUNT(DISTINCT(col)) */ distinct?: boolean /** * GROUP BY in sql * Used in conjunction with `attributes`. * @see Projectable */ group?: GroupOption }
However there is no 'paranoid' attribute, but it exists in the implementation. Please add:
paranoid?: boolean
It's likely that other calls are affected, too.
Current workaround:
YourModel.count({paranoid: false} as any)
(Counts all rows, also the ones deleted in paranoid mode)
Please add:
Just open a PR ;)
Opened PR :)
Currently the CountOptions look like this:
However there is no 'paranoid' attribute, but it exists in the implementation. Please add:
It's likely that other calls are affected, too.
Current workaround:
(Counts all rows, also the ones deleted in paranoid mode)