Skip to content

Commit b20fd02

Browse files
committed
Ensure delete returns empty error
Otherwise it might return a dataset.
1 parent 8b4a86c commit b20fd02

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

app/actions/app_delete.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def delete(apps, record_event: true)
5252
end
5353
logger.info("Deleted app: #{app.guid}")
5454
end
55+
56+
[]
5557
end
5658

5759
def delete_without_event(apps)

app/actions/organization_delete.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def delete(org_dataset)
3535
Repositories::OrganizationEventRepository.new.record_organization_delete_request(org, @user_audit_info, { recursive: true })
3636
end
3737
end
38+
39+
[]
3840
end
3941

4042
def timeout_error(dataset)

app/actions/v2/organization_delete.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def delete(org_dataset)
2121
org.destroy
2222
end
2323
end
24+
[]
2425
end
2526

2627
def timeout_error(dataset)

0 commit comments

Comments
 (0)