[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-10-11 14:32:31 +00:00
committed by GitHub
parent fd5fa32964
commit 7988de64c8

View File

@@ -49,11 +49,11 @@ export const deleteAllMiddlewares = async (application: ApplicationNested) => {
const { security, appName, redirects, serverId } = application;
let config: FileConfig;
if (serverId) {
config = await loadRemoteMiddlewares(serverId);
} else {
config = loadMiddlewares<FileConfig>();
}
if (serverId) {
config = await loadRemoteMiddlewares(serverId);
} else {
config = loadMiddlewares<FileConfig>();
}
if (config.http?.middlewares) {
if (security.length > 0) {