Skip to content

Commit 7fa0187

Browse files
committed
remove collection in case of commitTransaction and abortTransaction
1 parent 330a774 commit 7fa0187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mongo.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,10 +1554,10 @@ defmodule Mongo do
15541554
Keyword.pop_first(params, :collection)
15551555

15561556
:commitTransaction ->
1557-
"-"
1557+
{"-", params}
15581558

15591559
:abortTransaction ->
1560-
"-"
1560+
{"-", params}
15611561

15621562
_other ->
15631563
{Keyword.get(cmd, command), params}

0 commit comments

Comments
 (0)