Created
October 2, 2018 17:09
-
-
Save georgebearden/d6630ad0ccd45d7b467b9112d0d76c2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.dataProvider.get().subscribe( | |
| async next => { | |
| let document = {...} | |
| const response = await this.es.index(document) | |
| }, | |
| error => { reject(error) }, | |
| () => { resolve(this.stats.indexCount) }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment