Skip to content

Commit

Permalink
docs: fix factory-manager example in seeding.md (#1117)
Browse files Browse the repository at this point in the history
remove await, because get method of factoryManager is not a Promise
  • Loading branch information
NazarDevsMedia authored and tada5hi committed Sep 5, 2024
1 parent 8b4edc9 commit a7a0848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/seeding.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default class UserSeeder implements Seeder {

// ---------------------------------------------------

const userFactory = await factoryManager.get(User);
const userFactory = factoryManager.get(User);
// save 1 factory generated entity, to the database
await userFactory.save();

Expand Down

0 comments on commit a7a0848

Please sign in to comment.