Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Zinchenko committed Oct 22, 2018
2 parents 9f3cde8 + 3d1ea0d commit ad1bd47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Services/Users/AddEventService.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ protected function prepareParams(): array
if (($createdAt = $this->getCreatedAt()) !== null) {
$result['created'] = $createdAt;
}
if (($userId = $this->getUserId()) !== null) {
$result['by_user_id'] = $userId;
if ($this->isByUserId()) {
$result['by_user_id'] = true;
}

return $result;
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Users/SetPropertiesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ protected function getParams(): array
$result = ['operations' => json_encode(array_map(function (IProperty $item) {
return $item->toArray();
}, $this->getProperties()))];
if (($userId = $this->getUserId()) !== null) {
$result['by_user_id'] = $userId;
if ($this->isByUserId()) {
$result['by_user_id'] = true;
}

return $result;
Expand Down

0 comments on commit ad1bd47

Please sign in to comment.