Skip to content

Commit 221ebb8

Browse files
committed
add new enum value
1 parent 3343a3a commit 221ebb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/algora/matches/matches.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ defmodule Algora.Matches do
228228
def list_user_approved_matches(user_id) do
229229
JobMatch
230230
|> filter_by_user_id(user_id)
231-
|> filter_by_status([:approved, :highlighted])
231+
|> filter_by_status([:automatched, :approved, :highlighted])
232232
|> join(:inner, [m], j in assoc(m, :job_posting), as: :j)
233233
|> order_by([m],
234234
asc: m.candidate_approved_at,

lib/algora/matches/schemas/job_match.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Algora.Matches.JobMatch do
55
import Ecto.Changeset
66

77
typed_schema "job_matches" do
8-
field :status, Ecto.Enum, values: [:pending, :discarded, :approved, :highlighted], default: :pending
8+
field :status, Ecto.Enum, values: [:pending, :discarded, :automatched, :approved, :highlighted], default: :pending
99
field :score, :decimal
1010
field :notes, :string
1111
field :company_approved_at, :utc_datetime_usec
@@ -41,7 +41,7 @@ defmodule Algora.Matches.JobMatch do
4141
:anonymize
4242
])
4343
|> validate_required([:user_id, :job_posting_id])
44-
|> validate_inclusion(:status, [:pending, :discarded, :approved, :highlighted])
44+
|> validate_inclusion(:status, [:pending, :discarded, :automatched, :approved, :highlighted])
4545
|> foreign_key_constraint(:user_id)
4646
|> foreign_key_constraint(:job_posting_id)
4747
|> unique_constraint([:user_id, :job_posting_id])

0 commit comments

Comments
 (0)