From aaa9a1ba778be10cbd4a910c58f4e0833b14c0f1 Mon Sep 17 00:00:00 2001 From: Ali Hadi Mazeh Date: Mon, 24 Jun 2024 16:38:33 -0400 Subject: [PATCH] Fixed validity check for invitation --- app/serializers/invitation_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serializers/invitation_serializer.rb b/app/serializers/invitation_serializer.rb index 00b94a4c10..b25bf1ac1a 100644 --- a/app/serializers/invitation_serializer.rb +++ b/app/serializers/invitation_serializer.rb @@ -20,6 +20,6 @@ class InvitationSerializer < ApplicationSerializer attributes :id, :email, :updated_at, :valid def valid - object.updated_at < Invitation::INVITATION_VALIDITY_PERIOD.ago + object.updated_at > Invitation::INVITATION_VALIDITY_PERIOD.ago end end