Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/api/src/middleware/validation/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function createOrPatchProduct(taskType) {
on_permitted_substances_list,
// omit the body sent farm_id
farm_id,
// "removed" belongs to product_farm but shouldn't be updated via this upsert
removed,
...productData
} = product;

Expand Down Expand Up @@ -39,6 +41,8 @@ function createOrPatchProduct(taskType) {
on_permitted_substances_list,
// omit the body sent farm_id
farm_id,
// "removed" belongs to product_farm but shouldn't be added via this upsert
removed,
...productData
} = product;

Expand Down