Skip to content

Commit

Permalink
feat(Mocker.seed): seed and schema and work together
Browse files Browse the repository at this point in the history
  • Loading branch information
danibram committed May 13, 2020
1 parent 7faafab commit 68970fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export class Schema extends Generator {
build(db = {}) {
this.object = {}
this.DB = db ? db : {}
this.DB[this.name] = []
this.DB[this.name] = this.DB[this.name] ? this.DB[this.name] : []

if (Number.isInteger(this.options as any)) {
Array.from(new Array(this.options)).map(() => {
Expand Down

0 comments on commit 68970fc

Please sign in to comment.