Skip to content

Commit 02c04cf

Browse files
authored
Update best-practice.md (#599)
Missing "async" keyword while using await in function body.
1 parent 6f6fabc commit 02c04cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/essential/best-practice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import { AuthModel } from './model'
6262
export const auth = new Elysia({ prefix: '/auth' })
6363
.get(
6464
'/sign-in',
65-
({ body, cookie: { session } }) => {
65+
async ({ body, cookie: { session } }) => {
6666
const response = await Auth.signIn(body)
6767

6868
// Set session cookie

0 commit comments

Comments
 (0)