fix app.ts database to AppDataSource
This commit is contained in:
parent
f7db1ed888
commit
d7926538ae
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue