You Learn - Unhandled promise rejection 対策
web3 使ってコントラクトのファンクションを『send』処理したあとに
『UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
 Error: Can't set headers after they are sent.』
がでる。
原因を調べてみると、各、".on()"の処理後に、
res.send("xxxx")
と終了処理していたが、これではきっちり処理が終了しないらしく、
return res.send("xxxx")
と書かないといけいない。