ci: use local prisma client

This commit is contained in:
Vasily Zubarev
2025-05-03 10:23:13 +02:00
parent 9e6b2f89bf
commit 26991a1520
47 changed files with 66 additions and 60 deletions

View File

@@ -4,8 +4,8 @@ import { ActionState } from "@/lib/actions"
import { getCurrentUser } from "@/lib/auth"
import { EXPORT_AND_IMPORT_FIELD_MAP } from "@/models/export_and_import"
import { createTransaction } from "@/models/transactions"
import { Transaction } from "@/prisma/client"
import { parse } from "@fast-csv/parse"
import { Transaction } from "@prisma/client"
import { revalidatePath } from "next/cache"
export async function parseCSVAction(

View File

@@ -17,7 +17,7 @@ import { createField, deleteField, updateField } from "@/models/fields"
import { createProject, deleteProject, updateProject } from "@/models/projects"
import { SettingsMap, updateSettings } from "@/models/settings"
import { updateUser } from "@/models/users"
import { Prisma, User } from "@prisma/client"
import { Prisma, User } from "@/prisma/client"
import { revalidatePath } from "next/cache"
import { redirect } from "next/navigation"

View File

@@ -3,7 +3,7 @@ import { CrudTable } from "@/components/settings/crud"
import { getCurrentUser } from "@/lib/auth"
import { randomHexColor } from "@/lib/utils"
import { getCategories } from "@/models/categories"
import { Prisma } from "@prisma/client"
import { Prisma } from "@/prisma/client"
export default async function CategoriesSettingsPage() {
const user = await getCurrentUser()

View File

@@ -2,7 +2,7 @@
import { prisma } from "@/lib/db"
import { DEFAULT_CATEGORIES, DEFAULT_CURRENCIES, DEFAULT_FIELDS, DEFAULT_SETTINGS } from "@/models/defaults"
import { User } from "@prisma/client"
import { User } from "@/prisma/client"
import { redirect } from "next/navigation"
export async function resetLLMSettings(user: User) {

View File

@@ -2,7 +2,7 @@ import { addFieldAction, deleteFieldAction, editFieldAction } from "@/app/(app)/
import { CrudTable } from "@/components/settings/crud"
import { getCurrentUser } from "@/lib/auth"
import { getFields } from "@/models/fields"
import { Prisma } from "@prisma/client"
import { Prisma } from "@/prisma/client"
export default async function FieldsSettingsPage() {
const user = await getCurrentUser()

View File

@@ -3,7 +3,7 @@ import { CrudTable } from "@/components/settings/crud"
import { getCurrentUser } from "@/lib/auth"
import { randomHexColor } from "@/lib/utils"
import { getProjects } from "@/models/projects"
import { Prisma } from "@prisma/client"
import { Prisma } from "@/prisma/client"
export default async function ProjectsSettingsPage() {
const user = await getCurrentUser()

View File

@@ -20,7 +20,7 @@ import {
updateTransactionFiles,
} from "@/models/transactions"
import { updateUser } from "@/models/users"
import { Transaction } from "@prisma/client"
import { Transaction } from "@/prisma/client"
import { randomUUID } from "crypto"
import { mkdir, writeFile } from "fs/promises"
import { revalidatePath } from "next/cache"

View File

@@ -13,7 +13,7 @@ import { DEFAULT_PROMPT_ANALYSE_NEW_FILE } from "@/models/defaults"
import { deleteFile, getFileById, updateFile } from "@/models/files"
import { createTransaction, updateTransactionFiles } from "@/models/transactions"
import { updateUser } from "@/models/users"
import { Category, Field, File, Project, Transaction } from "@prisma/client"
import { Category, Field, File, Project, Transaction } from "@/prisma/client"
import { mkdir, rename } from "fs/promises"
import { revalidatePath } from "next/cache"
import path from "path"