mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 19:33:52 +08:00
simplify last_notified_id
This commit is contained in:
@ -36,7 +36,7 @@ module Jobs
|
|||||||
end
|
end
|
||||||
|
|
||||||
def last_notified_id
|
def last_notified_id
|
||||||
(i = $redis.get(self.class.last_notified_key)) && i.to_i
|
$redis.get(self.class.last_notified_key)&.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def last_notified_id=(arg)
|
def last_notified_id=(arg)
|
||||||
|
Reference in New Issue
Block a user