> 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?