Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Russo committed Jul 17, 2022
1 parent e593651 commit 07d61a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8,975 deletions.
9 changes: 5 additions & 4 deletions src/App/Presentation/Commands/SynchronizeMikroORM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import User from '../../../User/Infrastructure/Schemas/UserMikroORM';
import Item from '../../../Item/Infrastructure/Schemas/ItemMikroORM';
import File from '../../../File/Infrastructure/Schemas/FileMikroORM';
import MainConfig from '../../../Config/mainConfig';
import Logger from '../../../Shared/Logger/Logger';

void (async() =>
{
Expand All @@ -22,17 +23,17 @@ void (async() =>
const generator = orm.getSchemaGenerator();

const dropDump = await generator.getDropSchemaSQL();
console.log(dropDump);
Logger.debug(dropDump);

const createDump = await generator.getCreateSchemaSQL();
console.log(createDump);
Logger.debug(createDump);

const updateDump = await generator.getUpdateSchemaSQL();
console.log(updateDump);
Logger.debug(updateDump);

// there is also `generate()` method that returns drop + create queries
const dropAndCreateDump = await generator.generate();
console.log(dropAndCreateDump);
Logger.debug(dropAndCreateDump);

// or you can run those queries directly, but be sure to check them first!
await generator.dropSchema();
Expand Down
6 changes: 4 additions & 2 deletions src/Shared/Decorators/ContainerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import getDecorators from 'inversify-inject-decorators';
// setup the container...
const { lazyInject: originalLazyInject } = getDecorators(container);

// Additional function to make properties decorators compatible with babel.
function fixPropertyDecorator<T extends Function>(decorator: T): T
type MyFunction = (...args: any) => any;

// Additional function to make properties decorators compatible with babel and esbuild.
function fixPropertyDecorator<T extends MyFunction>(decorator: T): T
{
return ((...args: any[]) => (
target: any,
Expand Down
Loading

0 comments on commit 07d61a5

Please sign in to comment.