-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spree::Product.updated_at should be modified after PATCH /api/products/{id} #6035
Comments
Would you mind submitting a PR? |
|
Could you submit another PR against this repo? |
Closed
@edmondchui - This one is working fine for me in master branch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the Spree::API::ProductController#update method
The
updated_at
is not modified by the callCore::Importer::Product#update
.Also, the
@product.reload
call seems unnecessary in therespond_with
line.I think the fix includes two parts:
Set the
updated_at
toTime.now
before ``update`, i.e. changeto
Get rid of the necessary reload, i.e. change
to
The text was updated successfully, but these errors were encountered: