From deefec0ee103564fbf1af1249051767ea4577377 Mon Sep 17 00:00:00 2001 From: Parker Selbert Date: Sat, 4 Jan 2025 09:46:36 +0000 Subject: [PATCH] Add missing JSON aliases for delegation --- lib/oban/telemetry.ex | 2 ++ lib/oban/testing.ex | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/oban/telemetry.ex b/lib/oban/telemetry.ex index 38a2c814..1f58cfda 100644 --- a/lib/oban/telemetry.ex +++ b/lib/oban/telemetry.ex @@ -297,6 +297,8 @@ defmodule Oban.Telemetry do require Logger + alias Oban.JSON + @typedoc """ The types of telemetry events, essentially the second element of each event list. For example, in the event `[:oban, :job, :start]`, the "type" is `:job`. diff --git a/lib/oban/testing.ex b/lib/oban/testing.ex index c58f82fc..df3f2880 100644 --- a/lib/oban/testing.ex +++ b/lib/oban/testing.ex @@ -101,7 +101,7 @@ defmodule Oban.Testing do alias Ecto.Changeset - alias Oban.{Config, Job, Queue.Executor, Repo, Worker} + alias Oban.{Config, Job, JSON, Queue.Executor, Repo, Worker} @type perform_opts :: Job.option() | Oban.option()