mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Courier] switched the promise.playNice call to wrap the new methods
This commit is contained in:
parent
3f77a74da4
commit
2790081903
1 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,7 @@ define(function (require) {
|
|||
var angular = require('angular');
|
||||
var Courier = require('courier/courier');
|
||||
var DocSource = require('courier/data_source/doc');
|
||||
var errors = require('courier/errors');
|
||||
|
||||
require('services/promises');
|
||||
|
||||
|
@ -9,8 +10,8 @@ define(function (require) {
|
|||
.service('courier', function (es, promises) {
|
||||
|
||||
promises.playNice(DocSource.prototype, [
|
||||
'update',
|
||||
'index'
|
||||
'doUpdate',
|
||||
'doIndex'
|
||||
]);
|
||||
|
||||
var courier = new Courier({
|
||||
|
@ -19,6 +20,8 @@ define(function (require) {
|
|||
promises: promises
|
||||
});
|
||||
|
||||
courier.errors = errors;
|
||||
|
||||
return courier;
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue