run script handles timezones

This commit is contained in:
2024-09-20 14:45:27 -06:00
parent 32b211c9b2
commit 06b116c24f
4 changed files with 79 additions and 27 deletions

View File

@@ -64,3 +64,5 @@ export async function paginatedRequest<T extends any[]>(request: {
return returnData as T;
}

View File

@@ -16,7 +16,7 @@ const getCourseSettings = async (
const courseDirectory = path.join(basePath, courseName);
const settingsPath = path.join(courseDirectory, "settings.yml");
if (!(await directoryOrFileExists(settingsPath))) {
const errorMessage = `Error loading settings for ${courseName}, settings file ${settingsPath}`;
const errorMessage = `could not find settings for ${courseName}, settings file ${settingsPath}`;
console.log(errorMessage);
throw new Error(errorMessage);
}