diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index 2104bb505cad6b2d9d670cb7a224ab86f8775b58..7ce14ea9cef818e1d3622d4a2606ccd017df5c4e 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -1007,7 +1007,7 @@ class WebhookHandler < Goliath::API [jparams['from'], jparams['owner']] # NOTE: for outbound, 'from' == 'owner' else puts "big prob: '#{jparams['direction']}'" - return [400, {}, "OK"] + [jparams['from'], jparams['owner']] end return [400, {}, "Missing params\n"] unless users_num && others_num diff --git a/test/property/test_webhook_handler.rb b/test/property/test_webhook_handler.rb index 4c3d7d4023dc7a66cd4f7be18233f206a0a6a388..b83dc6468182c7d3093f4ccc48751392cbd55b76 100644 --- a/test/property/test_webhook_handler.rb +++ b/test/property/test_webhook_handler.rb @@ -155,7 +155,7 @@ class WebhookPropertyTest < Minitest::Test .generate }.check { |metadata, example| result = invoke_webhook(example) - assert_equal [400, {}, "OK"], result + assert_equal [400, {}, "Missing params\n"], result assert_empty written entries = REDIS.stream_entries("messages").sync assert_empty entries