From 944802c15e37d6095c5a144f1b7b1636775ec539 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 10:22:15 +0000 Subject: [PATCH] ci: apply automated fixes --- apps/server/src/v1/monitors/run/post.ts | 8 ++++---- apps/server/src/v1/monitors/trigger/post.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/server/src/v1/monitors/run/post.ts b/apps/server/src/v1/monitors/run/post.ts index c9f82238b8..91926b3544 100644 --- a/apps/server/src/v1/monitors/run/post.ts +++ b/apps/server/src/v1/monitors/run/post.ts @@ -66,8 +66,8 @@ export function registerRunMonitor(api: typeof monitorsApi) { .where( and( eq(monitorRun.workspaceId, Number(workspaceId)), - gte(monitorRun.createdAt, new Date(lastMonth)) - ) + gte(monitorRun.createdAt, new Date(lastMonth)), + ), ) .all() )[0].count; @@ -85,8 +85,8 @@ export function registerRunMonitor(api: typeof monitorsApi) { and( eq(monitor.id, Number(id)), eq(monitor.workspaceId, Number(workspaceId)), - isNull(monitor.deletedAt) - ) + isNull(monitor.deletedAt), + ), ) .get(); diff --git a/apps/server/src/v1/monitors/trigger/post.ts b/apps/server/src/v1/monitors/trigger/post.ts index b96536ec9e..f67351e40c 100644 --- a/apps/server/src/v1/monitors/trigger/post.ts +++ b/apps/server/src/v1/monitors/trigger/post.ts @@ -54,8 +54,8 @@ export function registerTriggerMonitor(api: typeof monitorsApi) { .where( and( eq(monitorRun.workspaceId, Number(workspaceId)), - gte(monitorRun.createdAt, new Date(lastMonth)) - ) + gte(monitorRun.createdAt, new Date(lastMonth)), + ), ) .all() )[0].count; @@ -73,8 +73,8 @@ export function registerTriggerMonitor(api: typeof monitorsApi) { and( eq(monitor.id, Number(id)), eq(monitor.workspaceId, Number(workspaceId)), - isNull(monitor.deletedAt) - ) + isNull(monitor.deletedAt), + ), ) .get();