Commit Graph

7 Commits

Author SHA1 Message Date
John Yeo
519752ff44 Refactor and clean up customer-related code:
- Consolidated import statements in `updateStripeSub.ts` and `invoiceRouter.ts`.
- Removed unused `handleDeleteEntity_old.ts` and `getAttachPreview.ts` files.
- Updated entity handling in `entitledRouter.ts` and `handleProductCheck.ts` for better null safety.
- Adjusted parameters in various functions to ensure consistency and clarity.
- Introduced default configuration in `getAttachConfig.ts` for better handling of attach parameters.
- Enhanced proration logic in `priceUtils.ts` and related files for improved billing accuracy.
2025-06-09 20:19:44 +01:00
John Yeo
ae2391893d rewrote all queries to drizzle 2025-05-27 17:34:12 +01:00
John Yeo
af4bd75316 rewrote product queries in drizzle 2025-05-25 14:58:25 +01:00
John Yeo
223fe5f949 fix: track feature_id idempotency key, updating products with internal entity id 2025-05-15 17:03:08 +01:00
John Yeo
a2703a05c8 refactor: enhance customer product handling with trial features and improve test script structure 2025-05-10 15:18:15 +01:00
John Yeo
a2ec951efb feature: entities can now have products of their own 2025-05-07 20:40:12 +01:00
John Yeo
50710047a6 fixed server build 2025-04-30 19:26:00 +01:00