···11import type { NextRequest } from "next/server";
22-import type { SignedInAuthObject } from "@clerk/nextjs/api";
32import { CloudTasksClient } from "@google-cloud/tasks";
43import type { google } from "@google-cloud/tasks/build/protos/protos";
54import type { z } from "zod";
···4645 const timestamp = Date.now();
47464847 const ctx = createTRPCContext({ req, serverSideCall: true });
4949- ctx.auth = { userId: "cron" } as SignedInAuthObject;
4848+ // FIXME: we should the proper type
4949+ ctx.auth = { userId: "cron" } as any;
5050 const caller = edgeRouter.createCaller(ctx);
51515252 const monitors = await caller.monitor.getMonitorsForPeriodicity({
···8989 }
9090 }
9191 }
9292- await Promise.all(allResult);
9292+ // await Promise.all(allResult);
9393 console.log(`End cron for ${periodicity} with ${allResult.length} jobs`);
9494};
9595// timestamp needs to be in ms
+1-1
apps/web/src/app/api/og/checker/route.tsx
···11-import { ImageResponse } from "next/server";
11+import { ImageResponse } from "next/og";
2233import {
44 getCheckerDataById,
+1-1
apps/web/src/app/api/og/monitor/route.tsx
···11-import { ImageResponse } from "next/server";
11+import { ImageResponse } from "next/og";
2233import { DESCRIPTION, TITLE } from "@/app/shared-metadata";
44import { getMonitorListData } from "@/lib/tb";
+1-1
apps/web/src/app/api/og/page/route.tsx
···11-import { ImageResponse } from "next/server";
11+import { ImageResponse } from "next/og";
2233import { DESCRIPTION, TITLE } from "@/app/shared-metadata";
44import { getResponseListData } from "@/lib/tb";
+1-1
apps/web/src/app/api/og/post/route.tsx
···11/* eslint-disable @next/next/no-img-element */
22-import { ImageResponse } from "next/server";
22+import { ImageResponse } from "next/og";
3344import { DESCRIPTION, TITLE } from "@/app/shared-metadata";
55import { BasicLayout } from "../_components/basic-layout";
+1-1
apps/web/src/app/api/og/route.tsx
···11/* eslint-disable @next/next/no-img-element */
22-import { ImageResponse } from "next/server";
22+import { ImageResponse } from "next/og";
3344import { DESCRIPTION, TITLE } from "@/app/shared-metadata";
55import { Background } from "./_components/background";