Commit Graph

47 Commits

Author SHA1 Message Date
18689ea124 feat: Add EventWithSettings domain model and related conversion functions
- Introduced EventWithSettings and EventWithSettingsRes structs for enhanced event data handling.
- Implemented conversion functions for creating and updating event settings.
- Added support for fetching events with settings from the database.
- Created new report data structures for comprehensive reporting capabilities.
- Implemented event statistics retrieval and filtering by league and sport.
- Added handlers for event statistics endpoints in the web server.
- Introduced DateInterval type for managing time intervals in reports.
2025-10-18 11:50:17 +03:00
3dfa1255b0 Refactor result notification service and remove redundant code
- Removed the CheckAndSendResultNotifications method from the result service.
- Consolidated notification logic into a new notification.go file.
- Updated email and in-app notification formatting to include event processing periods.
- Added error handling for wallet operations to check if wallets are active before processing transfers.
- Introduced new error for disabled wallets.
- Updated cron jobs to comment out unnecessary tasks.
- Added bulk update functionality for bet outcomes by odd IDs in the odd handler.
- Renamed ticket handler methods for clarity and consistency.
- Updated API version in routes.
2025-10-10 14:59:19 +03:00
80129828e0 fix: removed kafka and redis and added integration changes 2025-10-08 12:46:50 +03:00
62258b7ecb raffle ticket limit 2025-10-06 14:49:25 +03:00
c00110a503 feat: Enhance league, odds, events and bets functionality
- Updated league handling to ensure valid page size checks and improved error handling for sport ID parsing.
- Introduced new endpoint to update global league settings with comprehensive validation and error logging.
- Refactored odds settings management, including saving, removing, and updating odds settings with enhanced validation.
- Added tenant slug retrieval by token, ensuring proper user and company validation.
- Improved middleware to check for active company status and adjusted route permissions for various endpoints.
- Added SQL script to fix auto-increment desynchronization across multiple tables.
2025-10-05 23:45:31 +03:00
e49ff366d5 feat: Implement wallet notification system and refactor related services
- Added new notification handling in the wallet service to notify admins when wallet balances are low or insufficient.
- Created a new file for wallet notifications and moved relevant functions from the wallet service to this new file.
- Updated the wallet service to publish wallet events including wallet type.
- Refactored the client code to improve readability and maintainability.
- Enhanced the bet handler to support pagination and status filtering for bets.
- Updated routes and handlers for user search functionality to improve clarity and organization.
- Modified cron job scheduling to comment out unused jobs for clarity.
- Updated the WebSocket broadcast to include wallet type in notifications.
- Adjusted the makefile to include Kafka in the docker-compose setup for local development.
2025-09-25 21:26:24 +03:00
ee27ec7f10 add raffle filters 2025-09-21 16:14:08 +03:00
2ac66308d3 fix: merge fixes 2025-09-09 19:25:08 +03:00
d78a100f27 raffle service implementation 2025-09-03 16:06:01 +03:00
aaf14fedcf fix: global setting, company override settings, bet and ticket fixes for multi tenant 2025-08-25 07:23:55 +03:00
6d74cb8c28 feat: refactoring entire system to be multi-tenant 2025-08-22 12:54:48 +03:00
1c3f575195 flag abused odd 2025-07-15 15:39:47 +03:00
f63e35fb4e flag multiple bets with same bet outcomes 2025-07-14 23:05:17 +03:00
e3545f3f8c flag too many outcomes 2025-07-14 19:30:37 +03:00
ae56d253c2 merge fixes 2025-07-13 03:59:43 +03:00
5614958c5b Merge branch 'ticket-bet' 2025-07-13 03:49:26 +03:00
96ea2c8af4 optimizations for cashback 2025-07-10 15:21:34 +03:00
b84027ea04 cashback implementation 2025-07-10 08:25:30 +03:00
d1770eceb6 fix: refactored bet to remove unnecessary fields 2025-07-09 21:48:36 +03:00
d9f7cde114 create bet with fast code 2025-07-02 16:57:36 +03:00
163dae4e44 create bet auto generates fast code 2025-07-01 23:28:07 +03:00
4d5c90ab05 feat: bet and branch filters, admin company, customer wallet 2025-06-25 22:47:06 +03:00
0ef3a25ee7 popok external token fix + game list endpoint + recommedation fix 2025-06-20 21:08:52 +03:00
1c7ae8232c fix: outcome and league optimization 2025-06-19 00:27:39 +03:00
76518fcbd1 Merge branch 'main' into ticket-bet 2025-06-17 20:36:12 +03:00
78d351cae9 bet on same bet only twice 2025-06-17 01:17:22 +03:00
344923b177 fix: merge issues 2025-06-16 23:19:29 +03:00
cfced1951c Merge branch 'main' into ticket-bet 2025-06-16 21:34:34 +03:00
a5ea52b993 multi-currency support 2025-06-16 17:54:42 +03:00
1557a3141b fix: transfer not showing online bet issue 2025-06-16 16:24:42 +03:00
efc51e3b72 fix: result and event service fixes 2025-06-07 07:58:39 +03:00
bab1c6bb4c Merge branch 'main' into ticket-bet 2025-05-30 19:39:21 +03:00
542400bcaf feat: add the bet winning to user wallet 2025-05-30 19:38:59 +03:00
6d6b574c0b fix marge conflict 2025-05-30 01:12:08 +03:00
1b6fbebddf fix: get bet by users for online betting 2025-05-27 14:57:35 +03:00
11a70ec1dc fetch events from betfair 2025-05-23 13:09:44 +03:00
95fb33c9d4 fix: result service evaluation issues 2025-05-15 01:01:09 +03:00
b7b17fa8d2 create random bet 2025-05-08 07:29:00 +03:00
b4e20a274d basketball and fixes 2025-05-03 20:22:57 +03:00
8c536a6d2f company management 2025-04-23 03:44:17 +03:00
991199c3dc events pagination + ticket and bet validation 2025-04-22 03:20:52 +03:00
b4a21a5ddb - 2025-04-14 07:59:23 +03:00
6f28299a2e fix ticket issue 2025-04-12 12:57:19 +03:00
1b0a068a02 major fixes while integrating 2025-04-11 21:46:48 +03:00
2163053d97 some changes 2025-04-10 16:06:05 +03:00
959390b506 feat: added bet and ticket handlers 2025-04-01 22:03:23 +03:00
60887accd2 bet and ticket crud 2025-03-29 19:11:31 +03:00