|
@ -127,7 +127,7 @@ func (r *projectRepository) GetUserPermissions(ctx context.Context, user models. |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
permissions := make([]*models.ProjectPermission, 0, 8) |
|
|
permissions := make([]*models.ProjectPermission, 0, 8) |
|
|
err = r.db.GetContext(ctx, &permissions, query, args...) |
|
|
|
|
|
|
|
|
err = r.db.SelectContext(ctx, &permissions, query, args...) |
|
|
if err != nil && err != sql.ErrNoRows { |
|
|
if err != nil && err != sql.ErrNoRows { |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|