Reset RequestLimits

This commit is contained in:
Glax 2024-02-28 02:33:43 +01:00
parent 6c9071b22b
commit 17a27c9922

View File

@ -445,6 +445,10 @@ public class Server : GlobalBase
SendResponse(HttpStatusCode.BadRequest, response); SendResponse(HttpStatusCode.BadRequest, response);
settings.ExportSettings(); settings.ExportSettings();
break; break;
case "Settings/customRequestLimit/Reset":
settings.requestLimits = TrangaSettings.DefaultRequestLimits;
settings.ExportSettings();
break;
case "NotificationConnectors/Update": case "NotificationConnectors/Update":
if (!requestVariables.TryGetValue("notificationConnector", out notificationConnectorStr) || if (!requestVariables.TryGetValue("notificationConnector", out notificationConnectorStr) ||
!Enum.TryParse(notificationConnectorStr, out notificationConnectorType)) !Enum.TryParse(notificationConnectorStr, out notificationConnectorType))