Comment

Comment by ramblerman

> savePromiseDone && emailPromiseDone ? res.send() : null // sync, will wait until emailPromiseDone and savePromiseDone are defined ie. their functions are done

I'm not sure this is correct. Getting to this line already implies they are done, as the await will block. You could just put res.send() on this line no?

parent ramblerman 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton