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",
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Logger } from "@nestjs/common";
|
||||
|
||||
import { connectionSource } from "./connection";
|
||||
import { seedAdmin } from "./seeders/admin.seeder";
|
||||
import { seedNotifSettings } from "./seeders/notif-settting.seeder";
|
||||
import { seedNotifSettings } from "./seeders/notif-setting.seeder";
|
||||
import { seedRole } from "./seeders/role.seeder";
|
||||
|
||||
const logger = new Logger("Seeder");
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ const notifSettings = [
|
||||
{ title: NotifSettingsEnum.CREATE_INVOICE, title_fa: FarsiNotifSettingsEnum.CREATE_INVOICE },
|
||||
{ title: NotifSettingsEnum.CREATE_TICKET, title_fa: FarsiNotifSettingsEnum.CREATE_TICKET },
|
||||
{ title: NotifSettingsEnum.UNBLOCKING_SERVICE, title_fa: FarsiNotifSettingsEnum.UNBLOCKING_SERVICE },
|
||||
{ title: NotifSettingsEnum.CREATE_SERIVCE, title_fa: FarsiNotifSettingsEnum.CREATE_SERIVCE },
|
||||
{ title: NotifSettingsEnum.CREATE_SERVICE, title_fa: FarsiNotifSettingsEnum.CREATE_SERVICE },
|
||||
];
|
||||
|
||||
export const seedNotifSettings = async (dataSource: DataSource, logger: Logger) => {
|
||||
Reference in New Issue
Block a user