From 6c0b56e652614da9467d078c3c4c4c89fb04a3bd Mon Sep 17 00:00:00 2001 From: kinoppyd Date: Tue, 14 May 2024 23:25:01 +0900 Subject: [PATCH] Change friend QR code limit --- app/controllers/friends_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/friends_controller.rb b/app/controllers/friends_controller.rb index 14c07e50..6c02ba52 100644 --- a/app/controllers/friends_controller.rb +++ b/app/controllers/friends_controller.rb @@ -10,8 +10,8 @@ def new if @trigger @trigger.key = SecureRandom.uuid - @trigger.expires_at = Time.zone.now + 30.seconds - @trigger.amount = 1 + @trigger.expires_at = Time.zone.now + 90.seconds + @trigger.amount = 7 else @trigger = new_trigger end @@ -51,8 +51,8 @@ def new_trigger action: :craete } ], - expires_at: Time.zone.now + 30.seconds, - amount: 1 + expires_at: Time.zone.now + 90.seconds, + amount: 7 ) end end