[feat] Endpoint implementation done

This commit is contained in:
Jimmy 2021-03-16 22:10:37 +08:00
parent 7475a40775
commit 21f7d1d8ca
4 changed files with 6 additions and 9 deletions

View file

@ -338,7 +338,7 @@ class Event < ApplicationRecord
end
def is_live?
time() >= Time.now && Time.now <= time() + event_type.length
time >= Time.now && Time.now <= time + event_type.length
end
private