Commit 1f0d9941 authored by Éloïs's avatar Éloïs
Browse files

[fix] #1168

parent e59013df
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment