From d565f624e6bd791f57608c2ff50b9cb005ca924f Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Tue, 8 Oct 2024 15:34:08 +0200
Subject: [PATCH] feat(consent): increase consent duration to 3 years

---
 internal/models/sgeConsent.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/models/sgeConsent.go b/internal/models/sgeConsent.go
index e382ef0..8df860c 100644
--- a/internal/models/sgeConsent.go
+++ b/internal/models/sgeConsent.go
@@ -81,7 +81,7 @@ func (dh *DataHandler) PostSgeConsent(w http.ResponseWriter, r *http.Request) {
 		log.Println(err.Error())
 		return
 	}
-	consent.EndDate = time.Now().AddDate(1, 0, 0)
+	consent.EndDate = time.Now().AddDate(3, 0, 0)
 
 	// Create a consent in SQL
 	err = dh.sqlClient.Create(&consent).Error
-- 
GitLab