fix: Ensure correct quota warning threshold type conversion

This commit is contained in:
1808837298@qq.com
2025-02-22 15:19:55 +08:00
parent c44a32efe0
commit 48926b8a5a
2 changed files with 6 additions and 6 deletions

View File

@@ -330,7 +330,7 @@ const PersonalSetting = () => {
try {
const res = await API.put('/api/user/setting', {
notify_type: notificationSettings.warningType,
quota_warning_threshold: notificationSettings.warningThreshold,
quota_warning_threshold: parseFloat(notificationSettings.warningThreshold),
webhook_url: notificationSettings.webhookUrl,
webhook_secret: notificationSettings.webhookSecret,
notification_email: notificationSettings.notificationEmail