From 85a3d96cefe50597545901d93331662998a392dc Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Fri, 24 Oct 2025 12:17:26 -0400 Subject: [PATCH] small refactor to sgx_endstream.rb use REGISTRATION_REPO.find instead of equivalent, raw Redis query --- sgx_endstream.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sgx_endstream.rb b/sgx_endstream.rb index 9c6f71ebbc1c2127f13c2724b8b603d839b73d29..72f55167f307da63625b57f1a90fc862a6eeda8d 100755 --- a/sgx_endstream.rb +++ b/sgx_endstream.rb @@ -112,9 +112,7 @@ disco_info to: /\A\+?\d+@/ do |iq| end ibr type: :get do |iq| - REDIS.lrange( - "endstream_registration-#{iq.from.stripped}", 0, 2 - ).then do |creds| + REGISTRATION_REPO.find(iq.from).then do |creds| reply = iq.reply reply.registered = true if creds&.first reply.phone = creds&.first.to_s