Files
calendar/packages/lib/server/service/InsightsRoutingDIService.ts
T
Alex van AndelandGitHub aa51218428 perf: move to disable prisma client extension inference (#23692)
* perf: move to disable prisma client extension inference

* Prisma doesn't like it when you pass Record<string, unknown>

* API v1 type fixes

* Missed one

* Fix unit test fail due to faulty expect

* Assigning to prisma InputJsonValue/Array must be done as object, not interface

* Fix @calcom/web ts error, teams not defined

* Run eslint formatter

* fixed the routingFormHelpers file causing a failing app store e2e test
2025-09-09 10:56:58 +00:00

30 lines
709 B
TypeScript

import type { PrismaClient } from "@calcom/prisma";
import {
InsightsRoutingBaseService,
type InsightsRoutingServicePublicOptions,
type InsightsRoutingServiceFilterOptions,
} from "./InsightsRoutingBaseService";
export interface IInsightsRoutingService {
prisma: PrismaClient;
}
export class InsightsRoutingService {
constructor(private readonly dependencies: IInsightsRoutingService) {}
create({
options,
filters,
}: {
options: InsightsRoutingServicePublicOptions;
filters: InsightsRoutingServiceFilterOptions;
}): InsightsRoutingBaseService {
return new InsightsRoutingBaseService({
prisma: this.dependencies.prisma,
options,
filters,
});
}
}