Skip to content

Composite primary key brokes respose total #343

@elaijuh

Description

@elaijuh

q.include = q.include || [];

This line makes sequelize to use primary key instead of * while options.col is not defined in model beforeCount hook. That causes count on the first primary key which leads to unexpected result. I think it should be documented somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions