Fix error when terms of service are missing an effective date (#34200)

This commit is contained in:
Eugen Rochko 2025-03-18 22:39:13 +01:00 committed by GitHub
parent 547658f086
commit 0099907600
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ class REST::TermsOfServiceSerializer < ActiveModel::Serializer
attributes :effective_date, :effective, :content, :succeeded_by
def effective_date
object.effective_date.iso8601
(object.effective_date || object.published_at).iso8601
end
def effective