fix app.ts database to AppDataSource

This commit is contained in:
AdisakKanthawilang 2024-01-25 10:52:44 +07:00
parent f7db1ed888
commit d7926538ae
3 changed files with 6 additions and 6 deletions

View file

@ -13,14 +13,14 @@ import {
Example,
} from "tsoa";
import { CreateOrgRoot, OrgRoot } from "../entities/OrgRoot";
import database from "../database/data-source";
import { AppDataSource } from "../database/data-source";
import HttpSuccess from "../interfaces/http-success";
@Route("organization")
@Tags("OrgRoot")
// @Security("bearerAuth")
export class OrgRootController extends Controller {
private orgRootRepository = database.getRepository(OrgRoot);
private orgRootRepository = AppDataSource.getRepository(OrgRoot);
/**
* Root