mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
ci: use local prisma client
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user