mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Don't query database if patron id is empty
This commit is contained in:
@@ -93,6 +93,10 @@ func (h Patreon) FindPledge(patronID string) (*model.Pledge, error) {
|
||||
func (h Patreon) GetFeatureLevel(patronID string) (level int) {
|
||||
level = api.DefaultFeatures
|
||||
|
||||
if patronID == "" {
|
||||
return
|
||||
}
|
||||
|
||||
if patronID == creatorID {
|
||||
level = api.PodcasterFeature
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user