Use const instead of free string
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -1123,7 +1123,7 @@ func (r *mutationResolver) CreateOrganization(ctx context.Context, input types.C
|
|||||||
ctx,
|
ctx,
|
||||||
currentUser.ID,
|
currentUser.ID,
|
||||||
organization.ID,
|
organization.ID,
|
||||||
"MEMBER",
|
coredata.RoleMember,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("cannot add user to organization: %w", err)
|
return nil, fmt.Errorf("cannot add user to organization: %w", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user