Skip to content

Commit

Permalink
announce.published_at?に変更する
Browse files Browse the repository at this point in the history
Co-authored-by: Masaki Komagata <[email protected]>
  • Loading branch information
akingo55 and komagata authored Nov 8, 2022
1 parent abc5122 commit 798db1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/announcement_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class AnnouncementNotifier
def call(announce)
return if announce.wip? || announce.published_at.present?
return if announce.wip? || announce.published_at?

announce.update(published_at: Time.current)
DiscordNotifier.with(announce: announce).announced.notify_now
Expand Down

0 comments on commit 798db1e

Please sign in to comment.