···44import { app } from "@/index";
55import { SummarySchema } from "./schema";
6677-test("return the summary of the monitor", async () => {
77+test.todo("return the summary of the monitor", async () => {
88 const res = await app.request("/v1/monitor/1/summary", {
99 headers: {
1010 "x-openstatus-key": "1",
+1-6
apps/server/src/routes/v1/monitors/summary/get.ts
···2233import { and, db, eq, isNull } from "@openstatus/db";
44import { monitor } from "@openstatus/db/src/schema";
55-import { OSTinybird } from "@openstatus/tinybird";
66-import { Redis } from "@openstatus/upstash";
7588-import { env } from "@/env";
66+import { redis, tb } from "@/libs/clients";
97import { OpenStatusApiError, openApiErrorResponses } from "@/libs/errors";
108import type { monitorsApi } from "../index";
119import { ParamsSchema, SummarySchema } from "./schema";
···1412if (process.env.NODE_ENV === "test") {
1513 require("@/libs/test/preload");
1614}
1717-1818-const tb = new OSTinybird(env.TINY_BIRD_API_KEY);
1919-const redis = Redis.fromEnv();
20152116const getMonitorStats = createRoute({
2217 method: "get",