Skip to content

Commit

Permalink
ci: apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Oct 29, 2024
1 parent d37a6aa commit bbd88ca
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions apps/server/src/v1/monitors/results/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function registerGetMonitorResult(api: typeof monitorsApi) {
and(
eq(monitorRun.id, Number(resultId)),
eq(monitorRun.monitorId, Number(id)),
eq(monitorRun.workspaceId, Number(workspaceId))
)
eq(monitorRun.workspaceId, Number(workspaceId)),
),
)
.get();

Expand Down
8 changes: 4 additions & 4 deletions apps/server/src/v1/monitors/run/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,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;
Expand All @@ -69,8 +69,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();

Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/v1/monitors/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const MonitorSchema = z
]);
}
},
z.array(z.enum(flyRegions))
z.array(z.enum(flyRegions)),
)
.default([])
.openapi({
Expand Down Expand Up @@ -161,7 +161,7 @@ export const MonitorSchema = z
]);
}
},
z.array(z.object({ key: z.string(), value: z.string() })).default([])
z.array(z.object({ key: z.string(), value: z.string() })).default([]),
)
.nullish()
.openapi({
Expand Down
8 changes: 4 additions & 4 deletions apps/server/src/v1/monitors/trigger/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();

Expand Down

0 comments on commit bbd88ca

Please sign in to comment.