chore: complete payment service but not tested
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user