File size: 312 Bytes
c27e67a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | defmodule Plausible.Workers.LocationsSync do
@moduledoc false
use Plausible.Repo
use Oban.Worker, queue: :locations_sync
@impl Oban.Worker
def perform(_job) do
if Plausible.DataMigration.LocationsSync.out_of_date?() do
Plausible.DataMigration.LocationsSync.run()
end
:ok
end
end
|