Skip to content

Attribute added in beforeCreate hook not serialized into payload #725

@nickschot

Description

@nickschot
  • Platform: MacOS 10.13
  • Database: Postgres 9.6
  • Lux Version: 1.2.2
  • Node Version: 8.7.0

When using the beforeCreate (and probably some of the other hooks too) to set a model attribute which is not set by the request, it is not serialized/returned in the payload/response.

Changing attributes which already exist in the request in the same way works fine.

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