Hotfix from prod

Stephen Paul Weber created

Change summary

lib/sim_repo.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

lib/sim_repo.rb 🔗

@@ -61,7 +61,7 @@ class SIMRepo
 	end
 
 	def put_owner(sim, customer, nickname=nil)
-		db.query_defer(<<~SQL, [customer.customer_id, sim.iccid, nickname])
+		db.exec(<<~SQL, [customer.customer_id, sim.iccid, nickname])
 			UPDATE sims SET customer_id=$1, nickname=COALESCE($3, nickname) WHERE iccid=$2 AND customer_id IS NULL
 		SQL
 	end