Skip to content

API changes in Sequelize module #32

@chrisn

Description

@chrisn

The latest version of Sequelize (2.0.0-rc1) includes breaking API changes compared to version 2.0.0-dev4, which are currently using.

The error arises in the .findOrCreate() calls in lib/protected-resource-handler.js:

Error: Missing where attribute in the options parameter passed to findOrCreate. Please note that the API has changed, and is now options (an object with where and defaults keys), queryOptions (transaction etc.)

The dependency is specified in package.json as ~2.0.0-beta.2, so a clean install or running npm update breaks our code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions