Added .data to resolve promise.