Skip to content

Commit

Permalink
Pass the new password when updating the product
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Sep 18, 2024
1 parent e38dec4 commit 82511b2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,9 @@ class ProductRestClient @Inject constructor(
}
}
}
if (storedWCProductModel.password != updatedProductModel.password) {
body["post_password"] = updatedProductModel.password.orEmpty()
}

return body
}
Expand Down

0 comments on commit 82511b2

Please sign in to comment.