fix: apply biome formatting to schedule service files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mohamed Boudra
2026-04-11 05:01:57 +00:00
parent 98b50e5c83
commit 31b0c7e668
2 changed files with 3 additions and 10 deletions

View File

@@ -206,9 +206,7 @@ describe("ScheduleService", () => {
await service2.start();
const inspected = await service2.inspect(created.id);
expect(
new Date(inspected.nextRunAt!).getTime(),
).toBeGreaterThan(now.getTime());
expect(new Date(inspected.nextRunAt!).getTime()).toBeGreaterThan(now.getTime());
await service2.stop();
});

View File

@@ -255,9 +255,7 @@ export class ScheduleService {
let dirty = false;
// Mark any in-flight runs as failed
const runningIndex = updated.runs.findIndex(
(run) => run.status === "running",
);
const runningIndex = updated.runs.findIndex((run) => run.status === "running");
if (runningIndex !== -1) {
const runs = [...updated.runs];
runs[runningIndex] = {
@@ -276,10 +274,7 @@ export class ScheduleService {
updated.nextRunAt &&
new Date(updated.nextRunAt).getTime() <= now.getTime()
) {
let nextRunAt = computeNextRunAt(
updated.cadence,
new Date(updated.nextRunAt),
);
let nextRunAt = computeNextRunAt(updated.cadence, new Date(updated.nextRunAt));
while (nextRunAt.getTime() <= now.getTime()) {
nextRunAt = computeNextRunAt(updated.cadence, nextRunAt);
}