Files
calendar/packages/features/watchlist/lib/testUtils.ts
T
Syed Ali ShahbazandGitHub 7cd8dbf7d8 chore: Watchlist schema update (#24246)
* watchlist schema update

* changes addressed

* no backfill audit

* fix type

* fix flow of migration

* fix err

* type err fix

* add if exists check in migration
2025-10-04 01:44:37 +01:00

18 lines
368 B
TypeScript

import prismock from "../../../../tests/libs/__mocks__/prisma";
import type { WatchlistType } from "@calcom/prisma/enums";
interface WatchlistInput {
type: WatchlistType;
value: string;
}
export const createWatchlistEntry = async (input: WatchlistInput) => {
await prismock.watchlist.create({
data: {
...input,
createdById: 0,
},
});
};