Skip to content

Commit 9989c4d

Browse files
committed
Fix recently sent invitation logic to correctly check if the invitation was sent within the last 15 minutes
1 parent 6981836 commit 9989c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/better_together/events/invitations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def apply_search_filter(people)
126126
def recently_sent?(invitation)
127127
return false unless invitation.last_sent.present?
128128

129-
if invitation.last_sent < 15.minutes.ago
129+
if invitation.last_sent > 15.minutes.ago
130130
Rails.logger.info("Invitation #{invitation.id} recently sent; skipping resend")
131131
true
132132
else

0 commit comments

Comments
 (0)