Upgrade to Beego 2's orm

This commit is contained in:
Deluan 2022-07-30 12:43:48 -04:00
parent 16afd3a490
commit 695f82a1a0
31 changed files with 56 additions and 105 deletions

View file

@ -4,7 +4,7 @@ import (
"context"
. "github.com/Masterminds/squirrel"
"github.com/astaxie/beego/orm"
"github.com/beego/beego/v2/client/orm"
"github.com/navidrome/navidrome/model"
)
@ -12,7 +12,7 @@ type propertyRepository struct {
sqlRepository
}
func NewPropertyRepository(ctx context.Context, o orm.Ormer) model.PropertyRepository {
func NewPropertyRepository(ctx context.Context, o orm.QueryExecutor) model.PropertyRepository {
r := &propertyRepository{}
r.ctx = ctx
r.ormer = o