Commit Graph

6 Commits

Author SHA1 Message Date
syntaxbullet
77d3fafdce refactor: standardize transaction pattern in class.service.ts
Replace manual transaction handling with withTransaction helper pattern
for consistency with other services (economy, inventory, quest, leveling).

Also fix validation bug in modifyClassBalance:
- Before: if (balance < amount)
- After: if (balance + amount < 0n)

This correctly validates negative amounts (debits) to prevent balances
going below zero.
2025-12-24 21:57:14 +01:00
syntaxbullet
b7b1dd87b8 style: Standardize template literal spacing and remove extraneous markdown code block delimiters. 2025-12-22 13:08:35 +01:00
syntaxbullet
fbcac51370 refactor(modules): propagate UserError in quest, trade, and class services 2025-12-22 12:58:47 +01:00
syntaxbullet
528a66a7ef feat: Implement user enrollment interaction to assign a random class role and add new role configurations. 2025-12-18 20:09:19 +01:00
syntaxbullet
bcfd254071 feat: Implement graphical student ID card generation for user profiles. 2025-12-08 22:33:01 +01:00
syntaxbullet
29c0a4752d feat: Introduce new modules for class, inventory, leveling, and quests with expanded schema, refactor user service, and add verification scripts. 2025-12-07 23:03:33 +01:00