diff --git a/lib/ambry/series/series_book.ex b/lib/ambry/series/series_book.ex index fe17ca5e..bae7e724 100644 --- a/lib/ambry/series/series_book.ex +++ b/lib/ambry/series/series_book.ex @@ -25,7 +25,7 @@ defmodule Ambry.Series.SeriesBook do series_book |> cast(attrs, [:book_id, :book_number, :series_id, :delete]) |> validate_required([:book_number]) - |> validate_number(:book_number, greater_than: 0) + |> validate_number(:book_number, greater_than_or_equal_to: 0) |> maybe_apply_delete() end