From a6f2277d349c26e19c0c8349f5434cdc2700acf0 Mon Sep 17 00:00:00 2001 From: IJ Kim Date: Thu, 30 Jun 2022 09:41:26 -0400 Subject: [PATCH] added a safe navigation operator to contact.rb --- lib/sf/contact.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sf/contact.rb b/lib/sf/contact.rb index 0ebb477..9bccb5a 100644 --- a/lib/sf/contact.rb +++ b/lib/sf/contact.rb @@ -117,7 +117,7 @@ def self.where(args = {}) end def self.find_by(args = {}) - where(args).first + where(args)&.first end def self.inc_execs_for(account_id = '')