Commit graph

8 commits

Author SHA1 Message Date
google-labs-jules[bot]
a2d76db373 fix(payroll): Refactor /collect endpoint and add To-Do.md
This commit addresses several issues in the `/collect` endpoint to improve its security and robustness. It also introduces a `To-Do.md` file as requested by the user.

Key changes:
- Refactored the `/collect` endpoint to use a single database transaction, preventing data inconsistencies.
- Fixed SQL injection vulnerabilities by converting all database queries to use parameterized statements.
- Corrected a `TypeError` by ensuring the `COLLECT_COOLDOWN` configuration variable is always an integer.
- Updated transaction logging to record 'SYSTEM' as the source of funds for salary collections, instead of a "NULL" string.
- Added a `To-Do.md` file with suggestions for future features, including an automated payroll system, user transaction history, and an admin panel.
2025-09-21 00:19:13 +00:00
MrEisbear
b0e68f51d9 Add note to transaction record 2025-07-27 18:58:26 -05:00
MrEisbear
cfdedc1110 Implement BID generation
This commit implements automatic BID generation during registration
2025-07-25 23:27:20 -05:00
MrEisbear
7c9656e4d9 Adds a transaction record when salary is paid. 2025-07-24 22:43:36 -05:00
MrEisbear
ed256b8e6e HOTFIX, duped method 2025-07-24 22:25:56 -05:00
MrEisbear
bc4beb825a Adds endpoints for setting user jobs and adding money. 2025-07-24 19:35:10 -05:00
MrEisbear
bcc089e13b Adds the /collect route for users to claim job salaries.
Introduces COLLECT_COOLDOWN config for salary collection.
2025-06-20 19:06:06 -05:00
MrEisbear
6919abf4f7 Refactor: routes: Modularize routes into blueprints 2025-06-14 23:33:37 -05:00