Update node adapter to resolve promises correctly.