Removed even more unecessary verbosity in sdk

This commit is contained in:
Frikky
2024-02-29 04:24:03 +01:00
parent fb626a7c21
commit 4be496466e
2 changed files with 26 additions and 59 deletions
+13
View File
@@ -876,6 +876,18 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
}
org, err := shuffle.GetOrg(ctx, userInfo.ActiveOrg.Id)
if err != nil {
log.Printf("[DEBUG] Failed to get org during getinfo: %s", err)
}
// Do it per user?
if err == nil && len(org.SubscriptionUserId) == 0 {
manageOrgSubSignup(org)
func manageOrgSubSignup(org shuffle.Organization)
}
//if err == nil {
if len(org.Id) > 0 {
userInfo.ActiveOrg = shuffle.OrgMini{
@@ -964,6 +976,7 @@ func handleInfo(resp http.ResponseWriter, request *http.Request) {
tutorialsFinished = append(tutorialsFinished, tutorial)
}
returnValue := shuffle.HandleInfo{
Success: true,
Username: userInfo.Username,