Mise à jour de GitLab prévue ce samedi 23 octobre 2021 à partir de 9h00 CET

Commit efa6d74b authored by Éloïs's avatar Éloïs
Browse files

Merge branch 'dev' into proxy

parents e1f8f6f7 1f0d9941
......@@ -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