aboutsummaryrefslogtreecommitdiff
path: root/internal/route/api/v1/org/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/api/v1/org/org.go')
-rw-r--r--internal/route/api/v1/org/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/api/v1/org/org.go b/internal/route/api/v1/org/org.go
index 94c3f6a2..7a7de50e 100644
--- a/internal/route/api/v1/org/org.go
+++ b/internal/route/api/v1/org/org.go
@@ -27,7 +27,7 @@ func CreateOrgForUser(c *context.APIContext, apiForm api.CreateOrgOption, user *
Website: apiForm.Website,
Location: apiForm.Location,
IsActive: true,
- Type: db.USER_TYPE_ORGANIZATION,
+ Type: db.UserOrganization,
}
if err := db.CreateOrganization(org, user); err != nil {
if db.IsErrUserAlreadyExist(err) ||