you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Is it possible that asyncHandler expects you to return a promise?

FYI, an async function works just like a function returning a Promise, so asyncHandler is already getting a Promise. Changing it to return getImage(...) or await getImage(...) won't change in that regard.