chore: Upgrade koa-helmet to v9 and koa-body to v8 (#14046)

* chore: Upgrade koa-helmet to v9 and koa-body to v8

* fix: Keep decimal parsing for pagination limit and offset
This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-16 02:11:11 +00:00
1 parent f4c4018872
commit eceba73a14
20 files changed
+203 -77

No files matched your search

+3 -1
View File
@@ -11,6 +11,7 @@ import validateWebhook from "@server/middlewares/validateWebhook";
import { IntegrationAuthentication, Integration } from "@server/models";
import type { APIContext } from "@server/types";
import { verifyOAuthStateNonce } from "@server/utils/oauth";
import { RequestHelper } from "@server/utils/RequestHelper";
import { GitHubOAuthNonceCookie, GitHubUtils } from "../../shared/GitHubUtils";
import env from "../env";
import { GitHub } from "../github";
@@ -122,7 +123,8 @@ router.post(
},
}),
async (ctx: APIContext) => {
const { headers, body } = ctx.request;
const { headers } = ctx.request;
const body = RequestHelper.getBodyObject(ctx.request);
await new GitHubWebhookTask().schedule({
payload: body,