From 3ca63fad5e1af4280add91732fbf6b304b02f6de Mon Sep 17 00:00:00 2001 From: Alexander Huck Date: Fri, 27 Oct 2023 12:34:47 +0200 Subject: [PATCH] fix: simplify cachedauth data write --- internal/auth/yaml_storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auth/yaml_storage.go b/internal/auth/yaml_storage.go index 968675a..bc9ca6c 100644 --- a/internal/auth/yaml_storage.go +++ b/internal/auth/yaml_storage.go @@ -53,7 +53,7 @@ func (y *YamlStorage) WriteCalendarAuth(newCal CalendarAuth) (bool, error) { // Adding freshly written CalendarAuth to memory // Probably unneeded, the next time this data will be retrieved is on the next calendarsync run log.Debugf("Adding calendar auth for cal %s to memory", newCal.CalendarID) - y.DecryptedAuth = append(y.DecryptedAuth, newCal) + y.CachedAuth = cals return true, nil }