/**
* Removes activity point events.
*
- * @param string $objectType
- * @param integer[] $userToItems
- * @param boolean $isBulkProcessing
+ * @param string $objectType
+ * @param integer[] $userToItems
* @throws InvalidObjectTypeException
*/
- public function removeEvents($objectType, array $userToItems, $isBulkProcessing = false) {
+ public function removeEvents($objectType, array $userToItems) {
if (empty($userToItems)) return;
// get and validate object type
]);
}
- // during bulk processing, users do not have to be updated because
- // they can be updated via `UserRebuildDataWorker` afterwards
- // which calls `updateUsers()`
- if (!$isBulkProcessing) {
- // update total activity points per user
- $this->updateUsers(array_keys($userToItems));
- }
+ // update total activity points per user
+ $userIDs = array_keys($userToItems);
+ $this->updateUsers($userIDs);
}
/**