From 72d5f6d37f9a3e1943ac8faef2345e2bf9f76b49 Mon Sep 17 00:00:00 2001 From: "Dobromir Popov (aider)" Date: Tue, 17 Sep 2024 01:42:29 +0300 Subject: [PATCH] fix: export GenerateICS function correctly in calendar.js --- src/helpers/calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/calendar.js b/src/helpers/calendar.js index 4d4541a..3cfe8d4 100644 --- a/src/helpers/calendar.js +++ b/src/helpers/calendar.js @@ -17,7 +17,7 @@ const CREDENTIALS_PATH = path.join( ); //generates iCalendar file for a single shift -GenerateICS = function (shifts) { +const GenerateICS = function (shifts) { // https://stackoverflow.com/questions/3665115/create-a-file-in-memory-for-user-to-download-not-through-server var content = "BEGIN:VCALENDAR\n";