mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Minor fixes
This commit is contained in:
@@ -2,9 +2,9 @@ package feeds
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/emicklei/go-restful/log"
|
|
||||||
"github.com/go-pg/pg"
|
"github.com/go-pg/pg"
|
||||||
itunes "github.com/mxpv/podcast"
|
itunes "github.com/mxpv/podcast"
|
||||||
"github.com/mxpv/podsync/pkg/api"
|
"github.com/mxpv/podsync/pkg/api"
|
||||||
@@ -140,7 +140,8 @@ func (s Service) Downgrade(patronID string, featureLevel int) error {
|
|||||||
Set("page_size = ?", 50).
|
Set("page_size = ?", 50).
|
||||||
Set("feature_level = ?", 0).
|
Set("feature_level = ?", 0).
|
||||||
Set("format = ?", api.FormatVideo).
|
Set("format = ?", api.FormatVideo).
|
||||||
Set("quality = ?", api.QualityHigh).Where("user_id = ?", patronID).
|
Set("quality = ?", api.QualityHigh).
|
||||||
|
Where("user_id = ?", patronID).
|
||||||
Update()
|
Update()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user