mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
closes #2188
This commit is contained in:
@@ -241,4 +241,12 @@ SocketAdmin.clearLog = function(socket, data, callback) {
|
||||
fs.truncate(logPath, callback);
|
||||
};
|
||||
|
||||
SocketAdmin.getMoreEvents = function(socket, next, callback) {
|
||||
if (parseInt(next, 10) < 0) {
|
||||
return callback(null, {data: [], next: next});
|
||||
}
|
||||
events.getLog(next, 5000, callback);
|
||||
};
|
||||
|
||||
|
||||
module.exports = SocketAdmin;
|
||||
|
||||
Reference in New Issue
Block a user