Skip to content

Commit 99e91c8

Browse files
committed
Allow dumping nil date
1 parent 5489b55 commit 99e91c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mongo_ecto.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ defmodule Mongo.Ecto do
536536
{:ok, date}
537537
end
538538

539+
defp dump_date(nil), do: {:ok, nil}
540+
539541
defp dump_date(_) do
540542
:error
541543
end

0 commit comments

Comments
 (0)