Skip to content

Commit

Permalink
Fixed validity check for invitation
Browse files Browse the repository at this point in the history
  • Loading branch information
alihadimazeh committed Jun 24, 2024
1 parent 0314e5f commit aaa9a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/invitation_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit aaa9a1b

Please sign in to comment.