diff --git a/src/server/api/routers/activities.ts b/src/server/api/routers/activities.ts index 66dbf8d..308e93e 100644 --- a/src/server/api/routers/activities.ts +++ b/src/server/api/routers/activities.ts @@ -60,12 +60,12 @@ export const activityRouter = createTRPCRouter({ } ); - console.log({ rawActivitiyResponse }); + if (!rawActivitiyResponse) { throw new Error("Oops something went wrong"); } const activities = parseActivities(rawActivitiyResponse); - console.log({ activities }); + // set cache data if (process.env.VERCEL_ENV === "production") {