From 8d72086fb93b72eafaa9d94ed069dbaecb65b91d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 30 Sep 2020 10:40:10 +0200 Subject: [PATCH] Only remember anonymous participation 1 month Signed-off-by: Thomas Citharel --- js/src/services/AnonymousParticipationStorage.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/services/AnonymousParticipationStorage.ts b/js/src/services/AnonymousParticipationStorage.ts index 6be3cac1f..43eb9fbe2 100644 --- a/js/src/services/AnonymousParticipationStorage.ts +++ b/js/src/services/AnonymousParticipationStorage.ts @@ -63,8 +63,7 @@ function insertLocalAnonymousParticipation( function buildExpiration(event: IEvent): Date { const expiration = event.endsOn || event.beginsOn; - expiration.setMonth(expiration.getMonth() + 3); - expiration.setDate(1); + expiration.setMonth(expiration.getMonth() + 1); return expiration; }