Skip to content

Commit 2dda22d

Browse files
fix(deps): update dependency @koa/bodyparser to v6.1.0 (#405)
1 parent 9e88cf6 commit 2dda22d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/entity-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@as-integrations/koa": "1.1.1",
2727
"@expo/entity": "workspace:^",
2828
"@expo/entity-testing-utils": "workspace:^",
29-
"@koa/bodyparser": "6.0.0",
29+
"@koa/bodyparser": "6.1.0",
3030
"@koa/cors": "5.0.0",
3131
"@koa/router": "15.3.0",
3232
"graphql": "16.12.0",

packages/entity-example/src/routers/notesRouter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ router.post('/', async (ctx) => {
5454
return;
5555
}
5656

57-
const { title, body } = ctx.request.body;
57+
const { title, body } = ctx.request.body as any;
5858

5959
const createResult = await NoteEntity.creatorWithAuthorizationResults(viewerContext)
6060
.setField('userID', viewerContext.userID)
@@ -73,7 +73,7 @@ router.post('/', async (ctx) => {
7373

7474
router.put('/:id', async (ctx) => {
7575
const viewerContext = ctx.state.viewerContext;
76-
const { title, body } = ctx.request.body;
76+
const { title, body } = ctx.request.body as any;
7777

7878
const noteLoadResult = await NoteEntity.loaderWithAuthorizationResults(
7979
viewerContext,

yarn.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)