From 8d036ba73a0470ab955095a459b5556d3fa44ca9 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 3 Sep 2019 18:34:10 +0200 Subject: [PATCH] add date when initializing metadata --- historyKeeper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/historyKeeper.js b/historyKeeper.js index a5a371936..5ceeb174c 100644 --- a/historyKeeper.js +++ b/historyKeeper.js @@ -809,6 +809,7 @@ module.exports.create = function (cfg) { } } metadata.channel = channelName; + metadata.created = +new Date(); // if the user sends us an invalid key, we won't be able to validate their messages // so they'll never get written to the log anyway. Let's just drop their message