fix: regress. rescheduling shouldn't add to sets that pinning removed… (#9477)

* fix: regress. rescheduling shouldn't add to sets that pinning removed from

* test: remove the also from tests
v1.18.x
gasoved 4 years ago committed by GitHub
parent 427e4f4724
commit 8b79c7f139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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),

@ -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));

Loading…
Cancel
Save