1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-19 12:41:40 +00:00

Return file count on GET /document/list

This commit is contained in:
jendib
2013-08-22 17:59:24 +02:00
parent 62a5840777
commit 870a44da0d
6 changed files with 26 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ App.controller('Navigation', function($scope, $http, $state, $rootScope, User, R
setInterval(function() {
$scope.$apply(function() {
Restangular.one('app/log').get({
limit: 100,
// Error count will be wrong if there is more than 10 errors in 10 seconds
limit: 10,
level: 'ERROR'
}).then(function(data) {
// Add new errors