Skip to content

Commit 4c8a573

Browse files
committed
fix: store is passed to the repository instead of database
1 parent 7403ae7 commit 4c8a573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function mixinRepoFunction(store: Store<any>): void {
9999
}
100100

101101
const repository = modelOrRepository._isRepository
102-
? new modelOrRepository(this).initialize()
102+
? new modelOrRepository(database).initialize()
103103
: new Repository(database).initialize(modelOrRepository)
104104

105105
try {

0 commit comments

Comments
 (0)