Skip to content

Update prisma to use generated dir #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,9 @@ dist
# Sanity
.sanity

TODO.md
TODO.md

tasks/

# prisma
apps/web/generated
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-choose-args.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, test, vi } from "vitest";
import { type Action, ActionType, LogicalOperator } from "@prisma/client";
import { type Action, ActionType, LogicalOperator } from "@/generated/prisma";
import type { ParsedMessage, RuleWithActions } from "@/utils/types";
import { getActionItemsWithAiArgs } from "@/utils/ai/choose-rule/choose-args";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-choose-rule.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, test, vi } from "vitest";
import { aiChooseRule } from "@/utils/ai/choose-rule/ai-choose-rule";
import { type Action, ActionType, LogicalOperator } from "@prisma/client";
import { type Action, ActionType, LogicalOperator } from "@/generated/prisma";
import { defaultReplyTrackerInstructions } from "@/utils/reply-tracker/consts";

// pnpm test-ai ai-choose-rule
Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-extract-knowledge.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, test, vi, beforeEach } from "vitest";
import { aiExtractRelevantKnowledge } from "@/utils/ai/knowledge/extract";
import type { Knowledge } from "@prisma/client";
import type { Knowledge } from "@/generated/prisma";
import type { UserEmailWithAI } from "@/utils/llms/types";

// pnpm test-ai ai-extract-knowledge
Expand Down
4 changes: 2 additions & 2 deletions apps/web/__tests__/ai-process-user-request.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import stripIndent from "strip-indent";
import { processUserRequest } from "@/utils/ai/assistant/process-user-request";
import type { ParsedMessage, ParsedMessageHeaders } from "@/utils/types";
import type { RuleWithRelations } from "@/utils/ai/rule/create-prompt-from-rule";
import type { Category, GroupItem, Prisma } from "@prisma/client";
import { GroupItemType, LogicalOperator } from "@prisma/client";
import type { Category, GroupItem, Prisma } from "@/generated/prisma";
import { GroupItemType, LogicalOperator } from "@/generated/prisma";

// pnpm test-ai ai-process-user-request

Expand Down
2 changes: 1 addition & 1 deletion apps/web/__tests__/ai-prompt-to-rules.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect, vi } from "vitest";
import { aiPromptToRules } from "@/utils/ai/rule/prompt-to-rules";
import { createRuleSchema } from "@/utils/ai/rule/create-rule-schema";
import { ActionType } from "@prisma/client";
import { ActionType } from "@/generated/prisma";

// pnpm test-ai ai-prompt-to-rules

Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/admin/AdminUpgradeUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
type ChangePremiumStatusOptions,
} from "@/app/(app)/admin/validation";
import { zodResolver } from "@hookform/resolvers/zod";
import { PremiumTier } from "@prisma/client";
import { PremiumTier } from "@/generated/prisma";
import { handleActionResult } from "@/utils/server-action";

export const AdminUpgradeUserForm = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/admin/validation.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z } from "zod";
import { PremiumTier } from "@prisma/client";
import { PremiumTier } from "@/generated/prisma";

export const changePremiumStatusSchema = z.object({
email: z.string().email(),
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/ExecutedRulesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { MessageText } from "@/components/Typography";
import { ReportMistake } from "@/app/(app)/automation/ReportMistake";
import type { ParsedMessage } from "@/utils/types";
import { ViewEmailButton } from "@/components/ViewEmailButton";
import { ExecutedRuleStatus } from "@prisma/client";
import { ExecutedRuleStatus } from "@/generated/prisma";

export function EmailCell({
from,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/ReportMistake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
import type { RulesResponse } from "@/app/api/user/rules/route";
import { LoadingContent } from "@/components/LoadingContent";
import { Input } from "@/components/Input";
import { GroupItemType, type Rule } from "@prisma/client";
import { GroupItemType, type Rule } from "@/generated/prisma";
import { updateRuleInstructionsAction } from "@/utils/actions/rule";
import { Separator } from "@/components/ui/separator";
import { SectionDescription } from "@/components/Typography";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/RuleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
CategoryFilterType,
LogicalOperator,
SystemType,
} from "@prisma/client";
} from "@/generated/prisma";
import { ConditionType, type CoreConditionType } from "@/utils/config";
import { createRuleAction, updateRuleAction } from "@/utils/actions/rule";
import {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import { Tooltip } from "@/components/Tooltip";
import { cn } from "@/utils";
import { type RiskLevel, getRiskLevel } from "@/utils/risk";
import { useRules } from "@/hooks/useRules";
import { ActionType } from "@prisma/client";
import { ActionType } from "@/generated/prisma";
import { ThreadsExplanation } from "@/app/(app)/automation/RuleForm";

export function Rules() {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/create/examples.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { CreateRuleBody } from "@/utils/actions/rule.validation";
import { ActionType } from "@prisma/client";
import { ActionType } from "@/generated/prisma";
import { ConditionType } from "@/utils/config";
import {
ForwardIcon,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/group/ViewGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
addGroupItemAction,
deleteGroupItemAction,
} from "@/utils/actions/group";
import { type GroupItem, GroupItemType } from "@prisma/client";
import { type GroupItem, GroupItemType } from "@/generated/prisma";
import { Input } from "@/components/Input";
import { Select } from "@/components/Select";
import { zodResolver } from "@hookform/resolvers/zod";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/knowledge/KnowledgeBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { isActionError } from "@/utils/error";
import { LoadingContent } from "@/components/LoadingContent";
import type { GetKnowledgeResponse } from "@/app/api/knowledge/route";
import { formatDateSimple } from "@/utils/date";
import type { Knowledge } from "@prisma/client";
import type { Knowledge } from "@/generated/prisma";
import { ConfirmDialog } from "@/components/ConfirmDialog";
import { KnowledgeForm } from "@/app/(app)/automation/knowledge/KnowledgeForm";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/knowledge/KnowledgeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { toastError, toastSuccess } from "@/components/Toast";
import { isActionError } from "@/utils/error";
import type { GetKnowledgeResponse } from "@/app/api/knowledge/route";
import type { Knowledge } from "@prisma/client";
import type { Knowledge } from "@/generated/prisma";
import { Tiptap, type TiptapHandle } from "@/components/editor/Tiptap";
import { Label } from "@/components/ui/label";
import { cn } from "@/utils";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ColdEmailSetting,
SystemType,
type Prisma,
} from "@prisma/client";
} from "@/generated/prisma";
import type { CategoryAction } from "@/utils/actions/rule.validation";

export default async function OnboardingPage() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ParsedMessage } from "@/utils/types";
import type { GroupItem, Prisma } from "@prisma/client";
import type { GroupItem, Prisma } from "@/generated/prisma";

export type RuleWithGroup = Prisma.RuleGetPayload<{
include: { group: { include: { items: true } } };
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/automation/rule/create/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RuleForm } from "@/app/(app)/automation/RuleForm";
import { examples } from "@/app/(app)/automation/create/examples";
import { getEmptyCondition } from "@/utils/condition";
import { ActionType } from "@prisma/client";
import { ActionType } from "@/generated/prisma";
import type { CoreConditionType } from "@/utils/config";

export default async function CreateRulePage(props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { extractEmailAddress, extractNameFromEmail } from "@/utils/email";
import type { RowProps } from "@/app/(app)/bulk-unsubscribe/types";
import { Button } from "@/components/ui/button";
import { ButtonLoader } from "@/components/Loading";
import { NewsletterStatus } from "@prisma/client";
import { NewsletterStatus } from "@/generated/prisma";
import { Badge } from "@/components/ui/badge";

export function BulkUnsubscribeMobile({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { formatStat } from "@/utils/stats";
import { LoadingContent } from "@/components/LoadingContent";
import { Skeleton } from "@/components/ui/skeleton";
import type { NewsletterSummaryResponse } from "@/app/api/user/stats/newsletters/summary/route";
import { NewsletterStatus } from "@prisma/client";
import { NewsletterStatus } from "@/generated/prisma";

export function BulkUnsubscribeSummary() {
const { data, isLoading, error } = useSWR<
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/bulk-unsubscribe/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
PremiumTooltip,
PremiumTooltipContent,
} from "@/components/PremiumAlert";
import { GroupItemType, NewsletterStatus } from "@prisma/client";
import { GroupItemType, NewsletterStatus } from "@/generated/prisma";
import type { GroupsResponse } from "@/app/api/user/group/route";
import { addGroupItemAction } from "@/utils/actions/group";
import { toastError, toastSuccess } from "@/components/Toast";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/bulk-unsubscribe/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { PostHog } from "posthog-js/react";
import { onAutoArchive, onDeleteFilter } from "@/utils/actions/client";
import { setNewsletterStatusAction } from "@/utils/actions/unsubscriber";
import { decrementUnsubscribeCreditAction } from "@/utils/actions/premium";
import { NewsletterStatus } from "@prisma/client";
import { NewsletterStatus } from "@/generated/prisma";
import { cleanUnsubscribeLink } from "@/utils/parse/parseHtml.client";
import { captureException } from "@/utils/error";
import { addToArchiveSenderQueue } from "@/store/archive-sender-queue";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/bulk-unsubscribe/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NewsletterStatsResponse } from "@/app/api/user/stats/newsletters/route";
import type { NewsletterStatus } from "@prisma/client";
import type { NewsletterStatus } from "@/generated/prisma";
import type { UserLabel } from "@/hooks/useLabels";

export type Row = {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/ActionSelectionStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { parseAsStringEnum, useQueryState } from "nuqs";
import { TypographyH3 } from "@/components/Typography";
import { useStep } from "@/app/(app)/clean/useStep";
import { ButtonListSurvey } from "@/components/ButtonListSurvey";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";

export function ActionSelectionStep() {
const { onNext } = useStep();
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/CleanRun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EmailFirehose } from "@/app/(app)/clean/EmailFirehose";
import { PreviewBatch } from "@/app/(app)/clean/PreviewBatch";
import { Card } from "@/components/ui/card";
import type { getThreadsByJobId } from "@/utils/redis/clean";
import type { CleanupJob } from "@prisma/client";
import type { CleanupJob } from "@/generated/prisma";

export function CleanRun({
isPreviewBatch,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/CleanStats.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ArchiveIcon, InboxIcon } from "lucide-react";
import { Card, CardContent } from "@/components/ui/card";
import { cn } from "@/utils";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";

export function CleanStats({
stats,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/ConfirmationStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Badge } from "@/components/Badge";
import { cleanInboxAction } from "@/utils/actions/clean";
import { isActionError } from "@/utils/error";
import { toastError } from "@/components/Toast";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";
import { PREVIEW_RUN_COUNT } from "@/app/(app)/clean/consts";
import { HistoryIcon, SettingsIcon } from "lucide-react";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/EmailFirehose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { EmailItem } from "./EmailFirehoseItem";
import { useEmailStream } from "./useEmailStream";
import type { CleanThread } from "@/utils/redis/clean.types";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";

export function EmailFirehose({
threads,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/EmailFirehoseItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { isActionError } from "@/utils/error";
import { toastError } from "@/components/Toast";
import { getGmailUrl } from "@/utils/url";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";

type Status = "markedDone" | "markingDone" | "keep" | "labelled" | "processing";

Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/IntroStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SectionDescription } from "@/components/Typography";
import { TypographyH3 } from "@/components/Typography";
import { Button } from "@/components/ui/button";
import { useStep } from "@/app/(app)/clean/useStep";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";

export function IntroStep({
unhandledCount,
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/PreviewBatch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "@/components/ui/card";
import { cleanInboxAction } from "@/utils/actions/clean";
import { isActionError } from "@/utils/error";
import { CleanAction, type CleanupJob } from "@prisma/client";
import { CleanAction, type CleanupJob } from "@/generated/prisma";
import { PREVIEW_RUN_COUNT } from "@/app/(app)/clean/consts";

export function PreviewBatch({ job }: { job: CleanupJob }) {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/clean/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getGmailClient } from "@/utils/gmail/client";
import { auth } from "@/app/api/auth/[...nextauth]/auth";
import { getUnhandledCount } from "@/utils/assess";
import { CleanStep } from "@/app/(app)/clean/types";
import { CleanAction } from "@prisma/client";
import { CleanAction } from "@/generated/prisma";

export default async function CleanPage(props: {
searchParams: Promise<{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { DateCell } from "@/app/(app)/automation/ExecutedRulesTable";
import { TablePagination } from "@/components/TablePagination";
import { AlertBasic } from "@/components/Alert";
import { useSearchParams } from "next/navigation";
import { ColdEmailStatus } from "@prisma/client";
import { ColdEmailStatus } from "@/generated/prisma";
import { ViewEmailButton } from "@/components/ViewEmailButton";
import { EmailMessageCellWithData } from "@/components/EmailMessageCell";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Controller, type SubmitHandler, useForm } from "react-hook-form";
import { LoadingContent } from "@/components/LoadingContent";
import { toastError, toastSuccess } from "@/components/Toast";
import { zodResolver } from "@hookform/resolvers/zod";
import { ColdEmailSetting } from "@prisma/client";
import { ColdEmailSetting } from "@/generated/prisma";
import { isActionError } from "@/utils/error";
import { Button } from "@/components/ui/button";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { LoadingContent } from "@/components/LoadingContent";
import { ProgressBar } from "@tremor/react";
import { ONE_MONTH_MS } from "@/utils/date";
import { useUnsubscribe } from "@/app/(app)/bulk-unsubscribe/hooks";
import { NewsletterStatus } from "@prisma/client";
import { NewsletterStatus } from "@/generated/prisma";
import { EmailCell } from "@/components/EmailCell";

const useNewsletterStats = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/premium/Pricing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { AlertWithButton } from "@/components/Alert";
import { switchPremiumPlanAction } from "@/utils/actions/premium";
import { isActionError } from "@/utils/error";
import { TooltipExplanation } from "@/components/TooltipExplanation";
import { PremiumTier } from "@prisma/client";
import { PremiumTier } from "@/generated/prisma";
import { usePricingVariant, useSkipUpgrade } from "@/hooks/useFeatureFlags";

export function Pricing(props: {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/premium/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { env } from "@/env";
import { PremiumTier } from "@prisma/client";
import { PremiumTier } from "@/generated/prisma";

type Feature = {
text: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/AwaitingReply.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThreadTrackerType } from "@prisma/client";
import { ThreadTrackerType } from "@/generated/prisma";
import { ReplyTrackerEmails } from "./ReplyTrackerEmails";
import { getPaginatedThreadTrackers } from "./fetch-trackers";
import type { TimeRange } from "./date-filter";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/NeedsAction.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThreadTrackerType } from "@prisma/client";
import { ThreadTrackerType } from "@/generated/prisma";
import { ReplyTrackerEmails } from "./ReplyTrackerEmails";
import { getPaginatedThreadTrackers } from "./fetch-trackers";
import type { TimeRange } from "./date-filter";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/NeedsReply.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThreadTrackerType } from "@prisma/client";
import { ThreadTrackerType } from "@/generated/prisma";
import { ReplyTrackerEmails } from "./ReplyTrackerEmails";
import { getPaginatedThreadTrackers } from "./fetch-trackers";
import type { TimeRange } from "./date-filter";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/ReplyTrackerEmails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useRouter } from "next/navigation";
import sortBy from "lodash/sortBy";
import { useState, useCallback, type RefCallback } from "react";
import type { ParsedMessage } from "@/utils/types";
import { type ThreadTracker, ThreadTrackerType } from "@prisma/client";
import { type ThreadTracker, ThreadTrackerType } from "@/generated/prisma";
import { Table, TableBody, TableCell, TableRow } from "@/components/ui/table";
import { EmailMessageCell } from "@/components/EmailMessageCell";
import { Button } from "@/components/ui/button";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/Resolved.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import prisma from "@/utils/prisma";
import { ReplyTrackerEmails } from "./ReplyTrackerEmails";
import { getDateFilter, type TimeRange } from "./date-filter";
import { Prisma } from "@prisma/client";
import { Prisma } from "@/generated/prisma";

const PAGE_SIZE = 20;

Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/fetch-trackers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import prisma from "@/utils/prisma";
import type { ThreadTrackerType } from "@prisma/client";
import type { ThreadTrackerType } from "@/generated/prisma";
import { getDateFilter, type TimeRange } from "./date-filter";

const PAGE_SIZE = 20;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/onboarding/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { redirect } from "next/navigation";
import { EnableReplyTracker } from "@/app/(app)/reply-zero/EnableReplyTracker";
import { auth } from "@/app/api/auth/[...nextauth]/auth";
import prisma from "@/utils/prisma";
import { ActionType } from "@prisma/client";
import { ActionType } from "@/generated/prisma";

export default async function OnboardingReplyTracker() {
const session = await auth();
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/(app)/reply-zero/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { TabsToolbar } from "@/components/TabsToolbar";
import { GmailProvider } from "@/providers/GmailProvider";
import { cookies } from "next/headers";
import { REPLY_ZERO_ONBOARDING_COOKIE } from "@/utils/cookies";
import { ActionType } from "@prisma/client";
import { ActionType } from "@/generated/prisma";

export const maxDuration = 300;

Expand Down
Loading