No description
Find a file
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
.forgejo/workflows Make claim button use currency to claim (#216) 2024-05-03 18:37:08 +01:00
.gitea Create initial bot framework (#7) 2023-08-19 16:56:22 +01:00
database Create daily command (#224) 2024-05-24 17:40:45 +01:00
scripts Migrate to woodpecker (#150) 2024-01-26 21:02:17 +00:00
src Fix inventory showing quantities set to 0 (#239) 2024-05-24 17:50:34 +01:00
tests Create initial bot framework (#7) 2023-08-19 16:56:22 +01:00
.drone.yml Add ESLint and fix issues (#133) 2024-01-05 19:26:44 +00:00
.env.example Make claim button use currency to claim (#216) 2024-05-03 18:37:08 +01:00
.eslintrc.json Add ESLint and fix issues (#133) 2024-01-05 19:26:44 +00:00
.gitignore Make claim button use currency to claim (#216) 2024-05-03 18:37:08 +01:00
.woodpecker.yml Update woodpecker config to use new ip 2024-04-23 19:42:33 +01:00
docker-compose.yml Migrate to forgejo runner 2024-04-28 17:34:42 +01:00
jest.config.json Create initial bot framework (#7) 2023-08-19 16:56:22 +01:00
jest.setup.js Create initial bot framework (#7) 2023-08-19 16:56:22 +01:00
package-lock.json Update dependency @discordjs/rest to v2.3.0 (#232) 2024-05-20 18:24:48 +01:00
package.json Add cron job to add coins to a user every 30 minutes (#219) 2024-05-17 20:57:01 +01:00
README.md Initial commit 2023-08-19 14:09:24 +01:00
renovate.json Add to renovate config to add label on PRs (#128) 2023-12-29 21:03:15 +00:00
tsconfig.json Create initial bot framework (#7) 2023-08-19 16:56:22 +01:00

card-drop