From 8b79c7f13986cd6ea962bdc019fed1d155eccf98 Mon Sep 17 00:00:00 2001 From: gasoved Date: Thu, 22 Apr 2021 02:19:04 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20regress.=20rescheduling=20shouldn't=20ad?= =?UTF-8?q?d=20to=20sets=20that=20pinning=20removed=E2=80=A6=20(#9477)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: regress. rescheduling shouldn't add to sets that pinning removed from * test: remove the also from tests --- src/topics/scheduled.js | 1 - test/topics.js | 1 - 2 files changed, 2 deletions(-) diff --git a/src/topics/scheduled.js b/src/topics/scheduled.js index 7998a826f3..ab9cb04ef0 100644 --- a/src/topics/scheduled.js +++ b/src/topics/scheduled.js @@ -64,7 +64,6 @@ Scheduled.reschedule = async function ({ cid, tid, timestamp, uid }) { 'topics:scheduled', `uid:${uid}:topics`, 'topics:tid', - `cid:${cid}:tids`, `cid:${cid}:uid:${uid}:tids`, ], timestamp, tid), shiftPostTimes(tid, timestamp), diff --git a/test/topics.js b/test/topics.js index ea3dde84b9..8307a6f0e8 100644 --- a/test/topics.js +++ b/test/topics.js @@ -2830,7 +2830,6 @@ describe('Topic\'s', () => { 'topics:scheduled', `uid:${adminUid}:topics`, 'topics:tid', - `cid:${topicData.cid}:tids`, `cid:${topicData.cid}:uid:${adminUid}:tids`, ], topicData.tid); assert(scores.every(publishTime => publishTime === editedTopic.timestamp));