simplify last_notified_id
This commit is contained in:
parent
5d9d2cf287
commit
05efa7ce68
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue