diff --git a/lib/plugins.js b/lib/plugins.js index 501ea212..f96003ce 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -169,6 +169,9 @@ exports.getCachedConfig = function getCachedConfig() { return cachedConfig; }; +exports.logEvent = function event(rawEvent, deviceFingerprint) { + db.recordDeviceEvent(deviceFingerprint, rawEvent); +}; // This is where we record starting trade balance at the beginning // of the user session