mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +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
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user