update flags

This commit is contained in:
ialbert 2026-01-23 11:34:15 +03:00
parent 9d664898ff
commit b1fe08fcf6

View file

@ -120,7 +120,8 @@
select id, fid, phone
from signals_phones_map
where fid is not null
and (calculated_at is not null and calculated_at < searched_at)
and calculated_at is not null
and calculated_at < (current_date - make_interval(days => #{interval}))
and id > #{lastId}
order by id
limit #{batchSize}