-
Notifications
You must be signed in to change notification settings - Fork 105
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
[16.0] shopinvader_api_sale_loyalty: wrong write on GET /sales #1538
Comments
@marielejeune @lmignon gentle ping 😇 |
Hi @simahawk It isn't fresh in my mind anymore, but as far as I remember, I needed to call it in Unfortunately I won't have time to think about it now, I'm trying to finish what I have on my plate before my maternity leave coming in a few days now... 🐣 |
Hi Marie :)
Ok, I'll do my research 😉
Wow! Take care then! Wish you all the bests 🤗 |
@marielejeune are we sure we need to call
_update_programs_and_rewards
here?I'm investigating an issue w/ permission when calling
/sales
. This is the error I getThis comes from the write caused by the call to
_update_programs_and_rewards
and it looks suspicious to me because it will happen on GET calls for ALL the orders every time.Plus, I can imagine that this will happen twice at least when on sync and update rewards a cart because this method is called explicitly there.
IMO we should not call this method here at all an rely on the updates to refresh this info and - in any case - it should be avoided on locked orders.
WDYT?
The text was updated successfully, but these errors were encountered: