Clean code promise nodejs