Skip to content

グループ単位通知でユーザーが取得できないバグを修正#218

Open
csenet wants to merge 1 commit intodevelopfrom
fix/notice-group-user-extraction
Open

グループ単位通知でユーザーが取得できないバグを修正#218
csenet wants to merge 1 commit intodevelopfrom
fix/notice-group-user-extraction

Conversation

@csenet
Copy link
Contributor

@csenet csenet commented Jan 24, 2026

userExtraction関数でグループからユーザーを取得する際、エラーチェックの条件が逆になっていたため、正常にグループを取得できた場合にユーザーが追加されなかった。

  • if result.Err != nilif result.Err == nil に修正

userExtraction関数でグループからユーザーを取得する際、エラーチェックの条件が逆になっていたため、正常にグループを取得できた場合にユーザーが追加されなかった。

- `if result.Err != nil` を `if result.Err == nil` に修正

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@csenet csenet requested a review from Copilot February 1, 2026 13:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the group-based notification system where users could not be retrieved from groups. The error check condition was inverted, causing users to not be added when group retrieval was successful.

Changes:

  • Fixed the error check condition in the userExtraction function from if result.Err != nil to if result.Err == nil

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

1 participant