backport: big prob == no prob

Phillip Davis created

Change summary

sgx-bwmsgsv2.rb                       | 2 +-
test/property/test_webhook_handler.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

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

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