expressjs / expressjs/morgan

Support for promise

Open
#277 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.2k
Forks
565
Avg merge
3d 2h
Merged PRs (30d)
12

Description

I am writing a custom token with async callback method that looks up value in a database. Problem is http request is logged in as [object Promise] for the custom token and doesn't "await" for the value to be resolved. Is there a workaround for this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.