Feature: Check Db Integrity

- Right now it only checks for duplicate attendances.
This commit is contained in:
tanshu committed 2015-01-09 12:31:08 +05:30
1 parent e0d3887fa9
commit 948b45b2ce
4 files changed
+54

No files matched your search

+10
View File
@@ -121,6 +121,16 @@ var SettingsController = ['$scope', '$http', 'asDateFilter', '$modal', 'lockInfo
$scope.products = function ($viewValue) {
return Product.autocomplete({term: $viewValue, count: 20}).$promise;
};
$scope.checkDb = function () {
return $http.post('/api/DbIntegrity', {}).
success(function (data) {
$scope.toasts.push({Type: 'Success', Message: ''});
}).
error(function (errorMessage) {
$scope.toasts.push({Type: 'Danger', Message: errorMessage});
});
};
}];
SettingsController.resolve = {