Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHRM5X-1827: Develop buzz - comments API getOne operation #1568

Merged
merged 4 commits into from
Dec 12, 2022

Conversation

ManulMax
Copy link
Contributor

No description provided.

@RajithaKumara RajithaKumara changed the title OHRM5X-1827: Develop Buzz - Share Comments API getOne OHRM5X-1827: Develop buzz - comments API getOne operation Dec 12, 2022
Comment on lines +537 to +545
$modelClass = $this->getModelClass();
if ($modelClass == BuzzFeedPostModel::class) {
$buzzShare = $this->getBuzzService()->getBuzzDao()->getBuzzShareByPostId($postId);
$buzzFeedFilterParams = new BuzzFeedFilterParams();
$buzzFeedFilterParams->setAuthUserEmpNumber($this->getAuthUser()->getEmpNumber());
$buzzFeedFilterParams->setShareId($buzzShare->getId());
$buzzFeedPosts = $this->getBuzzService()->getBuzzDao()->getBuzzFeedPosts($buzzFeedFilterParams);
$buzzPost = $buzzFeedPosts[0];
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactor and move into local method

@RajithaKumara RajithaKumara merged commit 0a93cdc into orangehrm:5.3 Dec 12, 2022
Super-Chama pushed a commit to Super-Chama/orangehrm that referenced this pull request Dec 13, 2022
…1568)

* OHRM5X-1882: Bump php version to 8.2 & MariaDB version to 10.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants