fully completed #4658

This commit is contained in:
Julian Lam
2016-05-24 23:04:57 -04:00
parent 149565169b
commit ba412f4a56
7 changed files with 43 additions and 9 deletions

View File

@@ -33,7 +33,8 @@ var async = require('async'),
settings: {},
email: {},
analytics: {},
logs: {}
logs: {},
errors: {}
};
SocketAdmin.before = function(socket, method, data, next) {
@@ -255,6 +256,11 @@ SocketAdmin.logs.clear = function(socket, data, callback) {
meta.logs.clear(callback);
};
SocketAdmin.errors.clear = function(socket, data, callback) {
console.log('clearing errors?');
meta.errors.clear(callback);
};
SocketAdmin.getMoreEvents = function(socket, next, callback) {
var start = parseInt(next, 10);
if (start < 0) {