Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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