Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 12 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Seeder } from '@concepta/typeorm-seeding'; |
||
2 | import { UserFactory, JohnFactory } from '../Factories/UserFactory'; |
||
3 | |||
4 | export class UserSeeder extends Seeder { |
||
5 | async run() { |
||
6 | const userFactory = this.factory(UserFactory); |
||
7 | const johnFactory = this.factory(JohnFactory); |
||
8 | await johnFactory.create(); |
||
9 | await userFactory.createMany(5); |
||
10 | } |
||
11 | } |
||
12 |