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
@@ -13,6 +13,7 @@ import { IntegrationAuthentication, Integration } from "@server/models";
import { authorize } from "@server/policies";
import type { APIContext } from "@server/types";
import { safeEqual } from "@server/utils/crypto";
import { RequestHelper } from "@server/utils/RequestHelper";
import {
generateOAuthStateNonce,
verifyOAuthStateNonce,
@@ -354,7 +355,8 @@ router.post(
getSignatureFromHeader: getGitLabWebhookToken,
}),
async (ctx: APIContext) => {
const { headers, body } = ctx.request;
const { headers } = ctx.request;
const body = RequestHelper.getBodyObject(ctx.request);
const teamIds: Array<string | null> = ctx.state.webhookTeamIds ?? [null];
await Promise.all(