Skip to content

Conversation

@hikahana
Copy link
Collaborator

@hikahana hikahana commented Sep 5, 2025

対応Issue

  • resolve #0

概要

ビンゴ判定時にsubscription通信で取得した値を使用しているが、たまに通信失敗しているので判定前にget apiを叩くように修正しました。

実装詳細

画面スクリーンショット等

テスト項目

  • networkタブでちゃんとapi叩かれてたらおけそう
  • websocketは通常に動いてたら。
  • [ ]

備考

@hikahana hikahana changed the title ビンゴ判定ロジックの修正 ビンゴ判定時にget apiを叩くように修正 Sep 5, 2025
@hikahana hikahana marked this pull request as ready for review September 5, 2025 14:17
Copy link
Member

@TkymHrt TkymHrt left a comment

Choose a reason for hiding this comment

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

動作とコード大丈夫そうでした!
1点だけコメントしてます。

const definition = getMainDefinition(query);
return (
definition.kind === "OperationDefinition" &&
(definition as any).operation === "subscription"
Copy link
Member

Choose a reason for hiding this comment

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

nits
definitionへのany型キャストって必要ですか?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

いらないね!!消します

@TkymHrt TkymHrt self-requested a review September 7, 2025 14:34
Copy link
Member

@TkymHrt TkymHrt left a comment

Choose a reason for hiding this comment

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

LGTM

@hikahana hikahana merged commit 2eb4a5e into develop Sep 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants