chore: complete payment service but not tested

This commit is contained in:
mahyargdz
2025-02-04 09:15:22 +03:30
parent 31368610dd
commit 5d91afcc6e
22 changed files with 313 additions and 77 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ import { join } from "path";
import { config } from "dotenv";
import { DataSource } from "typeorm";
import { TicketMessageAttachment } from "../src/modules/tickets/entities/ticket-message-attachment";
config();
const { DB_HOST, DB_NAME, DB_PASS, DB_PORT, DB_USER, NODE_ENV } = process.env;
@@ -16,7 +18,7 @@ export const connectionSource = new DataSource({
password: DB_PASS,
database: DB_NAME,
logging: true,
entities: [join(process.cwd(), PATH, "modules/**/*.entity{.ts,.js}")],
entities: [join(process.cwd(), PATH, "modules/**/*.entity{.ts,.js}"), TicketMessageAttachment],
migrations: [join(process.cwd(), "database/migrations/*{.ts,.js}")],
synchronize: false,
migrationsTableName: "typeorm_migrations",