summaryrefslogtreecommitdiff
path: root/app/models/integrations/packagist.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/integrations/packagist.rb')
-rw-r--r--app/models/integrations/packagist.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/integrations/packagist.rb b/app/models/integrations/packagist.rb
index 64dfef1a4ef..7148de66aee 100644
--- a/app/models/integrations/packagist.rb
+++ b/app/models/integrations/packagist.rb
@@ -54,12 +54,12 @@ module Integrations
def test(data)
begin
result = execute(data)
- return { success: false, result: result[:message] } if result[:http_status] != 202
+ return { success: false, result: result.message } if result.payload[:http_status] != 202
rescue StandardError => e
- return { success: false, result: e }
+ return { success: false, result: e.message }
end
- { success: true, result: result[:message] }
+ { success: true, result: result.message }
end
override :hook_url