Skip to content

Commit

Permalink
fix: add missing save argument for seeder-factory make method
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Oct 4, 2022
1 parent 745687a commit 3f5f32b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"docs:dev": "vitepress dev docs --temp .temp",
"docs:build": "vitepress build docs --temp .temp",
"docs:help": "vitepress --help",
"prepare": "husky install",
"prepublishOnly": "npm run build"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/seeder/factory/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class SeederFactory<O extends Record<string, any>> {
const factoryFn = this.context.factoryFn(faker, this.meta);
let entity : O;
if (isPromise(factoryFn)) {
entity = await this.resolve(await factoryFn);
entity = await this.resolve(await factoryFn, save);
} else {
entity = await this.resolve(factoryFn, save);
}
Expand Down

0 comments on commit 3f5f32b

Please sign in to comment.