From 1ed978dc4a2d7cc96c2006081c729772dc29ac7b Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 26 Oct 2024 00:49:26 +0530 Subject: [PATCH] fix: type errors --- server/src/routes/storage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/storage.ts b/server/src/routes/storage.ts index fbb6ccf5..6b87c7f2 100644 --- a/server/src/routes/storage.ts +++ b/server/src/routes/storage.ts @@ -14,7 +14,7 @@ import Run from '../models/Run'; import { BinaryOutputService } from '../storage/mino'; import { workflowQueue } from '../worker'; import { AuthenticatedRequest } from './record'; -import computeNextRun from '../utils/schedule'; +import { computeNextRun } from '../utils/schedule'; export const router = Router(); @@ -343,7 +343,7 @@ router.put('/schedule/:id/', requireSignIn, async (req: AuthenticatedRequest, re timezone, cronExpression, lastRunAt: undefined, - nextRunAt, + nextRunAt: nextRunAt || undefined, }, });