mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
fix: apply biome formatting to schedule service files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user