Skip to content

Commit

Permalink
[fix] #1168
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Nov 1, 2017
1 parent e59013d commit 1f0d994
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/indexer.ts
Expand Up @@ -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;
Expand Down

0 comments on commit 1f0d994

Please sign in to comment.