Skip to content

do not pass default value on product update for fields #6

@alih70442

Description

@alih70442

When I want to update a product (or other models), I pass fields that I want to edit. other fields that I do not send, I do not want them to edit or change, I want they be what they were.
in method updateProduct, I should pass ProductRequestSchema. ProductRequestSchema is set default value for some fields like status and preparation_days, and this cause edit this fields.

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