Skip to content

Updating a model using through results in 400 error if collection attribute is updated #3946

@AskYous

Description

@AskYous

Sails version: 0.12.1
Node version: 6.9.2
NPM version: 3.10.9
Operating system: Windows 10


It seems that when two models are related via a many-to-many relationship using the through attribute property, and one of the models is updated via HTTP PUT, having the attribute using the through updated as well, sails throws a 400 error.

I've created a repository that reproduces this error. Please read the README.md file there. This is my repository that reproduces this error:

https://github.com/AskYous/sails-through-error/

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