Skip to content

Commit

Permalink
refactor(front): move LogsData to prisma folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Lerri-Cofannos committed Oct 10, 2023
1 parent 20a1eff commit 9bcb131
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion front/src/app/api/logs/[id]/connectTag/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { prismaErrorHandler } from "@/features/tags/utils";
import { LogsData } from "@/services/LogsData";
import { LogsData } from "@/services/prisma/LogsData";
import { Prisma } from "@prisma/client";
import { NextResponse } from "next/server";

Expand Down
2 changes: 1 addition & 1 deletion front/src/app/logs/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LogDetailsTable } from "@/features/tables/views/LogDetailsTable";
import { LogsData } from "@/services/LogsData";
import { LogsData } from "@/services/prisma/LogsData";

export default async function LogDetails({
params,
Expand Down
2 changes: 1 addition & 1 deletion front/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FilterHeader } from "@/features/filter/FilterHeader";
import { TableBody } from "@/features/tables/views/TableBody";
import { LogsData } from "@/services/LogsData";
import { LogsData } from "@/services/prisma/LogsData";

export const revalidate = 0;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LogData, LogDataArray } from "@/types/logDisplayOptions";
import { prisma } from "./PrismaClient";
import { convertSearchParamToPrismaConditions } from "./helpers/formatSearchParamToPrismaQuery";
import { prisma } from "../PrismaClient";
import { convertSearchParamToPrismaConditions } from "../helpers/formatSearchParamToPrismaQuery";

export const LogsData = {
getLogs: async (searchParams?: URLSearchParams): Promise<LogDataArray> => {
Expand Down

0 comments on commit 9bcb131

Please sign in to comment.