force resolve of promise
This commit is contained in:
parent
84e7a9a5d8
commit
03315300c0
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ angular.module('podcasts.services', ['podcasts.utilities', 'podcasts.queueList']
|
|||
}
|
||||
}
|
||||
}])
|
||||
.service('feeds', ['$log', '$q', 'dbNew', 'db', 'downloaderBackend', 'xmlParser', 'feedItems', 'utilities', function($log, $q, db, dbOld, downloaderBackend, xmlParser, feedItems, utilities) {
|
||||
.service('feeds', ['$log', '$q', 'dbNew', 'db', 'downloaderBackend', 'xmlParser', 'feedItems', 'utilities', '$rootScope', function($log, $q, db, dbOld, downloaderBackend, xmlParser, feedItems, utilities, $rootScope) {
|
||||
return {
|
||||
feeds: [],
|
||||
add: function(url) {
|
||||
|
@ -190,7 +190,7 @@ angular.module('podcasts.services', ['podcasts.utilities', 'podcasts.queueList']
|
|||
|
||||
cursor.continue();
|
||||
} else {
|
||||
deferred.resolve(feed);
|
||||
$rootScope.$apply(deferred.resolve(feed));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue