Fix return of promise.

This commit is contained in:
Alexis Lahouze 2015-08-19 18:12:41 +02:00
parent f22af2977e
commit 499fc2c275

View File

@ -91,7 +91,7 @@ accountantApp
account = angular.merge(account, $data); account = angular.merge(account, $data);
account.$save().then(function(data) { return account.$save().then(function(data) {
// Sort accounts by name. // Sort accounts by name.
$scope.accounts.sort(function(a, b) { $scope.accounts.sort(function(a, b) {
if(a.id && b.id) { if(a.id && b.id) {