Skip to content

Commit 3784a1b

Browse files
committed
Remove unnecessary await
1 parent dd5083d commit 3784a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/article/interface/http/articleController/CreateArticleHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { getBody } = makeValidator({
1717
});
1818

1919
const createArticleHandler = handler(({ createArticle }: Dependencies) => async (req: Request, res: Response) => {
20-
const { title, content } = await getBody(req);
20+
const { title, content } = getBody(req);
2121

2222
const articleId = await createArticle({ title, content });
2323

0 commit comments

Comments
 (0)