Commits

Anonymous committed 7842383

Use transform_selector on Selector in delete/3 so that the selector works.
http://github.com/JacobVorreuter/emongo/commit/2e34698549a191c543d92c7621e14f0b2d83e7c2

  • Participants
  • Parent commits b4ec54f

Comments (0)

Files changed (1)

 
 delete(PoolId, Collection, Selector) ->
 	{Pid, Pool} = gen_server:call(?MODULE, {pid, PoolId}, infinity),
-	Packet = emongo_packet:delete(Pool#pool.database, Collection, Pool#pool.req_id, Selector),
+	Packet = emongo_packet:delete(Pool#pool.database, Collection, Pool#pool.req_id, transform_selector(Selector)),
 	emongo_server:send(Pid, Pool#pool.req_id, Packet).
 
 %%------------------------------------------------------------------------------