From 05908ac035585d5d43202299a0d9bd02d28b113e Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 30 Aug 2019 16:31:08 +0200 Subject: [PATCH] store the current time in all pin-log messages --- rpc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc.js b/rpc.js index c6600125e..514d5e7d7 100644 --- a/rpc.js +++ b/rpc.js @@ -698,7 +698,7 @@ var pinChannel = function (Env, publicKey, channels, cb) { } if (pinSize > free) { return void cb('E_OVER_LIMIT'); } - Env.pinStore.message(publicKey, JSON.stringify(['PIN', toStore]), + Env.pinStore.message(publicKey, JSON.stringify(['PIN', toStore, +new Date()]), function (e) { if (e) { return void cb(e); } toStore.forEach(function (channel) { @@ -730,7 +730,7 @@ var unpinChannel = function (Env, publicKey, channels, cb) { return void getHash(Env, publicKey, cb); } - Env.pinStore.message(publicKey, JSON.stringify(['UNPIN', toStore]), + Env.pinStore.message(publicKey, JSON.stringify(['UNPIN', toStore, +new Date()]), function (e) { if (e) { return void cb(e); } toStore.forEach(function (channel) { @@ -774,7 +774,7 @@ var resetUserPins = function (Env, publicKey, channelList, cb) { They will not be able to pin additional pads until they upgrade or delete enough files to go back under their limit. */ if (pinSize > limit[0] && session.hasPinned) { return void(cb('E_OVER_LIMIT')); } - Env.pinStore.message(publicKey, JSON.stringify(['RESET', channelList]), + Env.pinStore.message(publicKey, JSON.stringify(['RESET', channelList, +new Date()]), function (e) { if (e) { return void cb(e); } channelList.forEach(function (channel) {