From 1f0d99410f9e9cd60275f62d72fccdd44326c12c Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Wed, 1 Nov 2017 17:30:53 +0100 Subject: [PATCH] [fix] #1168 --- app/lib/indexer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/indexer.ts b/app/lib/indexer.ts index ade897b1a..7b9c17140 100644 --- a/app/lib/indexer.ts +++ b/app/lib/indexer.ts @@ -1622,7 +1622,8 @@ export class Indexer { // BR_G93 static async ruleIndexGenMembershipExpiry(HEAD: DBHead, dal:any) { const expiries = []; - const memberships: MindexEntry[] = reduceBy(await dal.mindexDAL.sqlFind({ expires_on: { $lte: HEAD.medianTime } }), ['pub']); + + const memberships: MindexEntry[] = reduceBy(await dal.mindexDAL.sqlFind({ expires_on: { $lte: HEAD.medianTime }, revokes_on: { $gt: HEAD.medianTime} }), ['pub']); for (const POTENTIAL of memberships) { const MS = await dal.mindexDAL.getReducedMS(POTENTIAL.pub); const hasRenewedSince = MS.expires_on > HEAD.medianTime; -- GitLab