card-drop/src
Ethan Lane aa1ee5588a
All checks were successful
Deploy To Stage / build (push) Successful in 11s
Deploy To Stage / deploy (push) Successful in 16s
Fix inventory showing quantities set to 0 (#239)
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

- Fix a bug where the inventory would show a "x0" quantity when there were entities in the database with a current quantity of 0.
- This occurs when you sacrifice cards, that command can't delete the row as it has claims connected to it in another table, so we need to maintain that key.

#227

## Type of change

Please delete options that are not relevant.

- [x] Bug fix (non-breaking change which fixes an issue)

# How Has This Been Tested?

Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration.

# Checklist

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that provde my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules

Co-authored-by: VylpesTester <tester@vylpes.com>
Reviewed-on: #239
Reviewed-by: VylpesTester <tester@vylpes.com>
Co-authored-by: Ethan Lane <ethan@vylpes.com>
Co-committed-by: Ethan Lane <ethan@vylpes.com>
2024-05-24 17:50:34 +01:00
..
buttonEvents Change sacrifice command embed colours to go green when successful from red (#237) 2024-05-24 17:45:57 +01:00
client Add cron job to add coins to a user every 30 minutes (#219) 2024-05-17 20:57:01 +01:00
commands Change sacrifice command embed colours to go green when successful from red (#237) 2024-05-24 17:45:57 +01:00
constants Change sacrifice command embed colours to go green when successful from red (#237) 2024-05-24 17:45:57 +01:00
contracts Add cron job to add coins to a user every 30 minutes (#219) 2024-05-17 20:57:01 +01:00
database Create daily command (#224) 2024-05-24 17:40:45 +01:00
Functions Add logger to project (#183) 2024-03-15 17:33:12 +00:00
helpers Fix inventory showing quantities set to 0 (#239) 2024-05-24 17:50:34 +01:00
hooks Add logger to project (#183) 2024-03-15 17:33:12 +00:00
timers Add cron job to add coins to a user every 30 minutes (#219) 2024-05-17 20:57:01 +01:00
type Add cron job to add coins to a user every 30 minutes (#219) 2024-05-17 20:57:01 +01:00
bot.ts Add cron job to add coins to a user every 30 minutes (#219) 2024-05-17 20:57:01 +01:00
registry.ts Create daily command (#224) 2024-05-24 17:40:45 +01:00
webhooks.ts Add logger to project (#183) 2024-03-15 17:33:12 +00:00