Open Issues Need Help
View All on GitHubAI Summary: Modify the Zyrotech backend API to allow users to create new subscriptions to the same bot after their previous subscription expires. This involves removing a compound index on userId and botPackageId and updating the subscription creation logic to only prevent new subscriptions if an active or paused subscription exists for the user-bot combination.
AI Summary: Implement logic in the `/api/subscriptions` POST endpoint to calculate and set the `expiryDate` for new subscriptions. The `expiryDate` should be calculated by adding the `duration` (in days) from the associated `botPackage` to either the current date (if no existing subscription) or the existing subscription's `expiryDate`. Error handling and unit tests are required.
AI Summary: Implement a CRUD API for a MongoDB collection (`platform_credentials`) to store user platform credentials. The API must handle dynamic credential fields, enforce uniqueness constraints (one set of credentials per platform per user), and include comprehensive validation and error handling. Documentation updates are also required.
AI Summary: Implement a RESTful API for managing subscription packages. This involves creating two models: `Package` (representing generic subscription types) and `BotPackage` (representing bot-specific pricing for those packages). The API should support CRUD operations for both models, including validation and error handling. Seed data for default packages and initial bot pricing is also required. Authentication is needed for modifying packages.
AI Summary: Create a new API endpoint (/api/brokers) for the Zyrotech backend that returns a list of brokers suitable for autocomplete functionality in the finfx-app frontend. The response should include at least broker ID and name, and ideally support filtering and searching. This endpoint will be used in MT4/MT5 forms within the finfx-app.