Skip to content

Commit

Permalink
fix: store is passed to the repository instead of database
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed May 7, 2021
1 parent 7403ae7 commit 4c8a573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function mixinRepoFunction(store: Store<any>): void {
}

const repository = modelOrRepository._isRepository
? new modelOrRepository(this).initialize()
? new modelOrRepository(database).initialize()
: new Repository(database).initialize(modelOrRepository)

try {
Expand Down

0 comments on commit 4c8a573

Please sign in to comment.