mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
revert: separation of write and read DBs
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
1bf94531fd
commit
3982ba7258
22 changed files with 78 additions and 161 deletions
|
@ -3,7 +3,6 @@ package persistence
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/navidrome/navidrome/db"
|
||||
"github.com/navidrome/navidrome/log"
|
||||
"github.com/navidrome/navidrome/model"
|
||||
"github.com/navidrome/navidrome/model/request"
|
||||
|
@ -17,7 +16,7 @@ var _ = Describe("sqlBookmarks", func() {
|
|||
BeforeEach(func() {
|
||||
ctx := log.NewContext(context.TODO())
|
||||
ctx = request.WithUser(ctx, model.User{ID: "userid"})
|
||||
mr = NewMediaFileRepository(ctx, NewDBXBuilder(db.Db()))
|
||||
mr = NewMediaFileRepository(ctx, GetDBXBuilder())
|
||||
})
|
||||
|
||||
Describe("Bookmarks", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue