conceptadev / typeorm-seeding

A simple but powerful database seeder for TypeORM ^0.3.0
https://www.npmjs.com/package/@concepta/typeorm-seeding
MIT License
12 stars 8 forks source link

`useSeederFactory(Entity).make()` returns Promise #2

Closed hienngm closed 2 years ago

hienngm commented 2 years ago

I'm writing the factory for the entity with relations and find that useSeederFactory(Entity).make() returns Promise. It makes the FactoryCallback become the async function while It requires a normal function. I think make() shouldn't return the Promise. Did I miss something? image