mirror of
https://github.com/outline/outline.git
synced 2026-11-30 17:10:36 +03:00
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:
1 parent
f4c4018872
commit
eceba73a14
20 files changed
+203
-77
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user