fix: export GenerateICS function correctly in calendar.js

This commit is contained in:
Dobromir Popov (aider)
2024-09-17 01:42:29 +03:00
parent 92be09820d
commit 72d5f6d37f

View File

@ -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";