refactor: adding back artist and album tables

This commit is contained in:
Deluan
2020-01-31 09:53:19 -05:00
committed by Deluan Quintão
parent d389d40db1
commit f5071d1614
14 changed files with 208 additions and 92 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import (
"context"
"github.com/astaxie/beego/orm"
"github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/model"
"github.com/google/uuid"
. "github.com/onsi/ginkgo"
@@ -14,7 +15,7 @@ var _ = Describe("MediaRepository", func() {
var mr model.MediaFileRepository
BeforeEach(func() {
ctx := context.WithValue(context.Background(), "user", &model.User{ID: "userid"})
ctx := context.WithValue(log.NewContext(nil), "user", &model.User{ID: "userid"})
mr = NewMediaFileRepository(ctx, orm.NewOrm())
})