fix: type errors

This commit is contained in:
karishmas6
2024-10-26 00:49:26 +05:30
parent 93c312827c
commit 1ed978dc4a

View File

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