Skip to content

Commit

Permalink
fix : Set Koa by default and compile with test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Russo committed Oct 21, 2021
1 parent 999106f commit 2a539c5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"helmet": "^3.23.3",
"husky": "^4.3.8",
"i18n": "^0.13.2",
"inversify": "^5.1.1",
"inversify-express-utils": "^6.3.2",
"inversify": "^6.0.1",
"inversify-express-utils": "^6.4.2",
"inversify-inject-decorators": "^3.1.0",
"jsonwebtoken": "^8.5.1",
"jwt-simple": "^0.5.6",
Expand Down
2 changes: 1 addition & 1 deletion src/App/Infrastructure/Repositories/BaseMongoRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ abstract class BaseMongoRepository<T extends IBaseDomain, D extends Document & T
protected repository: Model<D>;
protected populate: string[];

protected constructor(@unmanaged() entityName: string, @unmanaged() populate: string[] = [])
constructor(@unmanaged() entityName: string, @unmanaged() populate: string[] = [])
{
this.entityName = entityName;
this.repository = connection.model<D>(entityName);
Expand Down
2 changes: 1 addition & 1 deletion src/App/Infrastructure/Repositories/BaseSqlRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class BaseSqlRepository<T> implements IBaseRepository<T>
protected readonly entityName: string;
protected repository: Repository<T>;

protected constructor(@unmanaged() entityName: string, @unmanaged() schema: EntitySchema)
constructor(@unmanaged() entityName: string, @unmanaged() schema: EntitySchema)
{
this.entityName = entityName;
this.repository = getRepository<T>(schema);
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void (async() =>
const eventHandler = EventHandler.getInstance();
await eventHandler.setListeners();

const app = AppFactory.create('AppExpress', {
const app = AppFactory.create('AppKoa', {
viewRouteEngine: `${Config.get('nodePath')}/dist/src/App/Presentation/Views`,
localesDirectory: `${Config.get('nodePath')}/dist/src/Config/Locales`,
serverPort: Config.get('serverPort')
Expand Down
2 changes: 1 addition & 1 deletion src/initTestServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const initTestServer = async(): Promise<any> =>
container.unbind(REPOSITORIES.ITokenRepository);
container.bind<ITokenRepository<ITokenDomain>>(REPOSITORIES.ITokenRepository).to(TokenMongoRepository);

const app = AppFactory.create('AppExpress', {
const app = AppFactory.create('AppKoa', {
viewRouteEngine: `${process.cwd()}/dist/src/App/Presentation/Views`,
localesDirectory: `${process.cwd()}/dist/src/Config/Locales`,
serverPort: 8088
Expand Down

0 comments on commit 2a539c5

Please sign in to comment.