Feature: Check Db Integrity
- Right now it only checks for duplicate attendances.
This commit is contained in:
1 parent
e0d3887fa9
commit
948b45b2ce
4 files changed
+54
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user