Closed alfiadoDev closed 1 year ago
hello, I'm having this error when running the seeds.
my ormconfig.json { "name": "default", "type": "postgres", "host": "localhost", "port": 5432, "username": "****", "password": "***", "database": "****", "entities": [ "./src/modules/**/infra/typeorm/entities/*.ts" ], "migrations": [ "./src/shared/infra/typeorm/migrations/*.ts" ], "seeds": ["src/shared/infra/typeorm/seeds/**/*{.ts,.js}"], "factories": ["src/shared/infra/typeorm/seeds/factories/**/*{.ts,.js}"], "cli": { "migrationsDir": "./src/shared/infra/typeorm/migrations" } }
{ "name": "default", "type": "postgres", "host": "localhost", "port": 5432, "username": "****", "password": "***", "database": "****", "entities": [ "./src/modules/**/infra/typeorm/entities/*.ts" ], "migrations": [ "./src/shared/infra/typeorm/migrations/*.ts" ], "seeds": ["src/shared/infra/typeorm/seeds/**/*{.ts,.js}"], "factories": ["src/shared/infra/typeorm/seeds/factories/**/*{.ts,.js}"], "cli": { "migrationsDir": "./src/shared/infra/typeorm/migrations" } }
my factory
my seed
error
hello, I'm having this error when running the seeds.
my ormconfig.json
{ "name": "default", "type": "postgres", "host": "localhost", "port": 5432, "username": "****", "password": "***", "database": "****", "entities": [ "./src/modules/**/infra/typeorm/entities/*.ts" ], "migrations": [ "./src/shared/infra/typeorm/migrations/*.ts" ], "seeds": ["src/shared/infra/typeorm/seeds/**/*{.ts,.js}"], "factories": ["src/shared/infra/typeorm/seeds/factories/**/*{.ts,.js}"], "cli": { "migrationsDir": "./src/shared/infra/typeorm/migrations" } }
my factory![2022-08-08_13-58](https://user-images.githubusercontent.com/61153857/183414118-4f063b20-b4b2-49e6-94d2-893397578368.png)
my seed![2022-08-08_13-58_1](https://user-images.githubusercontent.com/61153857/183414170-68eefb42-1c46-420d-8461-d050350680c3.png)
error![2022-08-08_14-00](https://user-images.githubusercontent.com/61153857/183414272-8ebf5615-7684-4384-8d12-53e4f9d13e1c.png)