fix: Feature flags are not be stored on account creation (#10387)

when creating an account via the platform API the feature flags do not get stored

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Honza Sterba
2024-11-20 13:39:17 +00:00
committed by GitHub
parent 93ebfccac2
commit 76a4140224
2 changed files with 4 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ class Platform::Api::V1::AccountsController < PlatformController
def create
@resource = Account.create!(account_params)
update_resource_features
@resource.save!
@platform_app.platform_app_permissibles.find_or_create_by(permissible: @resource)
end