Fix location of db to boundaries

This commit is contained in:
behnam 2024-11-02 12:50:33 +03:00
parent 0c70c66cf2
commit 26833e1818
10 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@
"start": "next start --port 4000",
"lint": "next lint",
"test": "vitest",
"seed": "node -r dotenv/config ./src/bootstrap/db/seed.js"
"seed": "node -r dotenv/config ./src/bootstrap/boundaries/db/seed.js"
},
"dependencies": {
"@heroicons/react": "^2.1.5",

View File

@ -10,4 +10,4 @@ const dbConfigs = {
database: envs.POSTGRES_DB,
}
export const sql = postgres(dbConfigs);
export const sql = postgres(dbConfigs);

View File

@ -3,7 +3,7 @@
import { z } from 'zod';
import { revalidatePath } from 'next/cache';
import { redirect } from 'next/navigation';
import { sql } from '@/bootstrap/db/db';
import { sql } from '@/bootstrap/boundaries/db/db';
const FormSchema = z.object({
id: z.string(),

View File

@ -1,4 +1,4 @@
import { sql } from "@/bootstrap/db/db";
import { sql } from "@/bootstrap/boundaries/db/db";
import { formatCurrency } from "@/feature/common/feature-helpers";
import CustomerInvoice from "@/feature/core/customer-invoice/domain/entity/customer-invoice";
import CustomerInvoiceRepo from "@/feature/core/customer-invoice/domain/i-repo/customer-invoice-repo";

View File

@ -1,4 +1,4 @@
import { sql } from "@/bootstrap/db/db";
import { sql } from "@/bootstrap/boundaries/db/db";
import { formatCurrency } from "@/feature/common/feature-helpers";
import Customer from "@/feature/core/customer/domain/entity/customer";
import CustomerRepo from "@/feature/core/customer/domain/i-repo/customer-repo";

View File

@ -1,4 +1,4 @@
import { sql } from "@/bootstrap/db/db";
import { sql } from "@/bootstrap/boundaries/db/db";
import { formatCurrency } from "@/feature/common/feature-helpers";
import InvoiceRepo from "@/feature/core/invoice/domain/i-repo/invoice-repo";
import { InvoiceParam } from "@/feature/core/invoice/domain/param/invoice-param";

View File

@ -1,4 +1,4 @@
import { sql } from "@/bootstrap/db/db";
import { sql } from "@/bootstrap/boundaries/db/db";
import Revenue from "@/feature/core/revenue/domain/entity/revenue";
import RevenueRepo from "@/feature/core/revenue/domain/i-repo/revenue-repo";
import { connection } from "next/server";

View File

@ -25,6 +25,6 @@
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/bootstrap/db/seed.js", "src/bootstrap/db/placeholder-data.js"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/bootstrap/boundaries/db/seed.js", "src/bootstrap/boundaries/db/placeholder-data.js"],
"exclude": ["node_modules"]
}