@@ -44,7 +44,7 @@ def create
4444 message = VCAP ::CloudController ::OrganizationQuotasCreateMessage . new ( hashed_params [ :body ] )
4545 unprocessable! ( message . errors . full_messages ) unless message . valid?
4646
47- organization_quota = OrganizationQuotasCreate . new . create ( message )
47+ organization_quota = OrganizationQuotasCreate . new ( user_audit_info ) . create ( message )
4848
4949 render json : Presenters ::V3 ::OrganizationQuotaPresenter . new ( organization_quota , **presenter_args ) , status : :created
5050 rescue OrganizationQuotasCreate ::Error => e
@@ -60,7 +60,7 @@ def update
6060 organization_quota = QuotaDefinition . first ( guid : hashed_params [ :guid ] )
6161 resource_not_found! ( :organization_quota ) unless organization_quota
6262
63- organization_quota = OrganizationQuotasUpdate . update ( organization_quota , message )
63+ organization_quota = OrganizationQuotasUpdate . update ( organization_quota , message , user_audit_info )
6464
6565 render json : Presenters ::V3 ::OrganizationQuotaPresenter . new ( organization_quota , **presenter_args ) , status : :ok
6666 rescue OrganizationQuotasUpdate ::Error => e
@@ -77,7 +77,7 @@ def destroy
7777 unprocessable! ( 'This quota is applied to one or more organizations. Apply different quotas to those organizations before deleting.' )
7878 end
7979
80- delete_action = OrganizationQuotaDeleteAction . new
80+ delete_action = OrganizationQuotaDeleteAction . new ( user_audit_info )
8181
8282 deletion_job = VCAP ::CloudController ::Jobs ::DeleteActionJob . new ( QuotaDefinition , organization_quota . guid , delete_action , 'organization_quota' )
8383 pollable_job = Jobs ::Enqueuer . new ( queue : Jobs ::Queues . generic ) . enqueue_pollable ( deletion_job )
@@ -94,7 +94,7 @@ def apply_to_organizations
9494 organization_quota = QuotaDefinition . first ( guid : hashed_params [ :guid ] )
9595 resource_not_found! ( :organization_quota ) unless organization_quota
9696
97- OrganizationQuotaApply . new . apply ( organization_quota , message )
97+ OrganizationQuotaApply . new ( user_audit_info ) . apply ( organization_quota , message )
9898
9999 render status : :ok , json : Presenters ::V3 ::ToManyRelationshipPresenter . new (
100100 "organization_quotas/#{ organization_quota . guid } " ,
0 commit comments