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, }, });