NextChat
NextChat copied to clipboard
fix: Fix Usage query failure and optimize query logic, and resolve markdown link issue
Description
This pull request includes the following changes:
- Fixed issue causing Usage queries to fail due to time-related problems.
- Optimized query logic for both subscribed and non-subscribed accounts.
- Resolved issue with internal links not redirecting properly in markdown, and optimized behavior for external links to open in a new window.
Details
Fixed Issue
Previously, the Usage queries were failing due to time-related problems. This pull request fixes the issue and ensures that the queries run smoothly.
Optimized Query Logic
The query logic for both subscribed and non-subscribed accounts has been optimized to improve performance and accuracy. For non-subscribed accounts, the 'startDate' parameter will now be set to 90 days ago.
Resolved Markdown Issue
This pull request also resolves an issue where internal links were not redirecting properly in markdown, and optimizes the behavior for external links to open in a new window.
Testing
The changes have been tested thoroughly to ensure they work as expected.