Skip to content

Commit bdeb3d8

Browse files
committed
fix: NoteRepository needs 4 params (database, noteDao, tagDao, versionDao)
1 parent aca1072 commit bdeb3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/kitabu/app/ui/notes/NoteViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import kotlinx.coroutines.launch
1111
class NoteViewModel(application: Application) : AndroidViewModel(application) {
1212

1313
private val db = KitabuDatabase.getDatabase(application)
14-
val repo = NoteRepository(db.noteDao(), db.tagDao(), db.noteVersionDao())
14+
val repo = NoteRepository(db, db.noteDao(), db.tagDao(), db.noteVersionDao())
1515
val tagRepo = TagRepository(db.tagDao())
1616
val templateRepo = TemplateRepository(db.templateDao())
1717

0 commit comments

Comments
 (0)