Add migration to fix policy delete issues

Ref #3257
This commit is contained in:
Owen
2026-07-01 10:37:17 -04:00
parent e3ef592778
commit 108cb6216c
3 changed files with 114 additions and 2 deletions
+5 -1
View File
@@ -10,6 +10,7 @@ import logger from "@server/logger";
import { fromError } from "zod-validation-error";
import { OpenAPITags, registry } from "@server/openApi";
import { sendToClient } from "../ws";
import { canCompress } from "@server/lib/clientVersionChecks";
const updateSiteParamsSchema = z.strictObject({
siteId: z.coerce.number().int().positive()
@@ -97,7 +98,10 @@ export async function restartSite(
type: "newt/wg/restart",
data: {}
},
{ incrementConfigVersion: false, compress: false }
{
incrementConfigVersion: false,
compress: canCompress(newt.version, "newt")
}
);
return response(res, {