-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Failed service queries still deduct currency. #230
Comments
yea I can confirm, it only check if realm is online and if it is on it will execute the query (even if is wrong) and take your currency then it will appear: Your order has been processed. Anyway we need also a fix for the other case when the query is correct it seems it will execute it but after you checkout the spinner remain stuck spinning without announcement with your order status (even if it has been executed already) so you have to force refresh the page. |
In my opinion, you don't need a check for that I don't see a bug here either I played around a lot with "$this->db->affected_rows()" because of my modules and it often shows 0, even though the query was executed But the whole store needs an update in my opinion |
yea agree, but still we need a fix for the case when query is correct and spinner remain stuck without notice you the final status of the order like |
Can you explain it? |
2023-05-27.21-57-07.mp4 |
Is there an error in the log file or browser console? |
well I got only
but as you can see in video is really valid you can try too my cms query: UPDATE account_data SET avatar=1 WHERE id={ACCOUNT}; |
Can you try it without ";" ? |
well ok now worked without ";" kinda strange but usually you need an end to any query 😀 |
Sorry, I didn't explain the issues we are having enough I guess and maybe this should be a feature request. We need to run a query to detect if the player should be able to use the service based on other parameters, so sometimes the query will change 0 rows because they don't meet the requirements. If a similar feature exists already it would be greatly appreciated if pointed out. Thanks. |
When creating a service query on the store, if your query fails for whatever reason (no rows affected for example) your currency is still deducted.
It would be nice if query was verified first to see if it affected any rows or failed before deducting the currency and checking out.
You can replicate this issue by:
Query
item type.The text was updated successfully, but these errors were encountered: