analytics/lib/workers/rotate_salts.ex

10 lines
202 B
Elixir
Raw Normal View History

defmodule Plausible.Workers.RotateSalts do
use Plausible.Repo
use Oban.Worker, queue: :rotate_salts
@impl Oban.Worker
def perform(_args, _job) do
Plausible.Session.Salts.rotate()
end
end