From c83ccc44e75d248ed9666b6a762a53bb73b54d2b Mon Sep 17 00:00:00 2001 From: yashsinghcodes Date: Fri, 17 May 2024 07:43:34 +0000 Subject: [PATCH] fixed default org creation error --- backend/go-app/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 9db78ed0..0547b7b6 100755 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -580,7 +580,7 @@ func handleRegister(resp http.ResponseWriter, request *http.Request) { Name: orgSetupName, Id: orgId, Org: orgSetupName, - Users: []shuffle.User{}, + Users: []shuffle.User{user}, Roles: []string{"admin", "user"}, CloudSync: false, } @@ -614,6 +614,8 @@ func handleRegister(resp http.ResponseWriter, request *http.Request) { Id: newOrg.Id, Name: newOrg.Name, } + + user.ActiveOrg = currentOrg } } }