mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-06-16 21:03:58 +08:00
feat(quotaConfigs): update weekly window condition to include monthly windows
This commit is contained in:
@@ -341,7 +341,7 @@ const buildCodexQuotaWindows = (
|
||||
const seconds = getWindowSeconds(window);
|
||||
if (seconds === FIVE_HOUR_SECONDS && !fiveHourWindow) {
|
||||
fiveHourWindow = window;
|
||||
} else if (seconds === WEEK_SECONDS && !weeklyWindow) {
|
||||
} else if ((seconds === WEEK_SECONDS || isMonthlyWindow(window)) && !weeklyWindow) {
|
||||
weeklyWindow = window;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user