feat: #8864, add action:events.log

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 20f4fe085f
commit 9c5c32d4a5

@ -8,6 +8,7 @@ const db = require('./database');
const batch = require('./batch');
const user = require('./user');
const utils = require('./utils');
const plugins = require('./plugins');
const events = module.exports;
@ -78,6 +79,7 @@ events.log = async function (data) {
], data.timestamp, eid),
db.setObject('event:' + eid, data),
]);
plugins.fireHook('action:events.log', { data: data });
};
events.getEvents = async function (filter, start, stop, from, to) {

Loading…
Cancel
Save