Commit d733309d authored by Bas de Nooijer's avatar Bas de Nooijer

Fixed event result bugs

parent 9bc980c6
......@@ -211,7 +211,7 @@ class BufferedAdd extends Plugin
$result = $this->client->update($this->updateQuery);
$this->clear();
$event = new PostFlushEvent($this->buffer);
$event = new PostFlushEvent($result);
$this->client->getEventDispatcher()->dispatch(Events::POST_FLUSH, $event);
return $result;
......@@ -238,7 +238,7 @@ class BufferedAdd extends Plugin
$result = $this->client->update($this->updateQuery);
$this->clear();
$event = new PostCommitEvent($this->buffer);
$event = new PostCommitEvent($result);
$this->client->getEventDispatcher()->dispatch(Events::POST_COMMIT, $event);
return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment