add date when initializing metadata

pull/1/head
ansuz 6 years ago
parent 9a9b75674b
commit 8d036ba73a

@ -809,6 +809,7 @@ module.exports.create = function (cfg) {
} }
} }
metadata.channel = channelName; metadata.channel = channelName;
metadata.created = +new Date();
// if the user sends us an invalid key, we won't be able to validate their messages // 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 // so they'll never get written to the log anyway. Let's just drop their message

Loading…
Cancel
Save