Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
fix nil pointer bug for create account hook on account creation
Dane Schneiderb723e4c19aac
diff --git a/app/server/handlers/accounts.go b/app/server/handlers/accounts.goindex 6792abbe..51dbb889 100644--- a/app/server/handlers/accounts.go+++ b/app/server/handlers/accounts.go@@ -135,10 +135,15 @@ func CreateAccountHandler(w http.ResponseWriter, r *http.Request) {}}+ var orgId string+ if org != nil {+ orgId = org.Id+ }+err = hooks.ExecHook(hooks.CreateAccount, hooks.HookParams{W: w,User: &user,- OrgId: org.Id,+ OrgId: orgId,})if err != nil {return