Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async derive does not get awaited #588

Open
lithdew opened this issue Apr 2, 2024 · 1 comment
Open

async derive does not get awaited #588

lithdew opened this issue Apr 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lithdew
Copy link

lithdew commented Apr 2, 2024

What version of Elysia.JS is running?

1.0.11

What platform is your computer?

Darwin 23.4.0 arm64 arm

What steps can reproduce the bug?

export async function deriveSession({ cookie }: Context<any>) {
  return { session: "123" };
}

Use the derive() above as .derive(deriveSession). The field session is undefined in all handlers.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

@lithdew lithdew added the bug Something isn't working label Apr 2, 2024
@SaltyAom
Copy link
Member

SaltyAom commented Apr 26, 2024

Patched on 1.0.14, please update and let me know if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants