Remove shadowing declaration of subscription.
Этот коммит содержится в:
@@ -314,10 +314,11 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var subscription *model.Subscription
|
var subscription *model.Subscription
|
||||||
|
var err error
|
||||||
if c.App.Cloud() != nil {
|
if c.App.Cloud() != nil {
|
||||||
// Subscription Data
|
// Subscription Data
|
||||||
userId := c.AppContext.Session().UserId
|
userId := c.AppContext.Session().UserId
|
||||||
subscription, err := c.App.Cloud().GetSubscription(userId)
|
subscription, err = c.App.Cloud().GetSubscription(userId)
|
||||||
if err != nil || subscription == nil {
|
if err != nil || subscription == nil {
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user