From 4ea14b6b81819ba3fecf40d9a27fb182b3d0426f Mon Sep 17 00:00:00 2001 From: Zach R Date: Wed, 18 Sep 2024 20:16:06 -0700 Subject: [PATCH] feat: add prisma migration --- .../20240919031555_add_manager_slack_groups/migration.sql | 2 ++ src/tasks/index.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 prisma/migrations/20240919031555_add_manager_slack_groups/migration.sql diff --git a/prisma/migrations/20240919031555_add_manager_slack_groups/migration.sql b/prisma/migrations/20240919031555_add_manager_slack_groups/migration.sql new file mode 100644 index 0000000..2eb9187 --- /dev/null +++ b/prisma/migrations/20240919031555_add_manager_slack_groups/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "Departments" ADD COLUMN "manager_slack_group" VARCHAR(50); diff --git a/src/tasks/index.ts b/src/tasks/index.ts index eddaa81..8aeee06 100644 --- a/src/tasks/index.ts +++ b/src/tasks/index.ts @@ -53,7 +53,8 @@ export function scheduleTasks() { tasks['Sync Sheet'] = scheduleTask(updateSheet, 60 * 5, isProd, 0) tasks['Announce Certs'] = scheduleTask(announceNewCerts, 60 * 60, isProd, 60) // Just in case the cert announcement isn't automatically run on changes - if (isProd) { // This task affects workspace-wide groups, should not be run while testing if in the same workspace + if (isProd) { + // This task affects workspace-wide groups, should not be run while testing if in the same workspace tasks['Sync Usergroups'] = scheduleTask(updateSlackUsergroups, 60 * 60, isProd, 2 * 60) } tasks['Link Fallback Photos'] = createTaskFunc(syncFallbackPhotos)