Skip to content

Commit

Permalink
XMR: fix player action service for clientType.
Browse files Browse the repository at this point in the history
  • Loading branch information
dasgarner committed Dec 27, 2024
1 parent c66aec4 commit bc981a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Service/DisplayNotifyService.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ private function processPlayerActions()
$displayIdsRequiringActions = array_values(array_unique($this->displayIdsRequiringActions, SORT_NUMERIC));
$qmarks = str_repeat('?,', count($displayIdsRequiringActions) - 1) . '?';
$displays = $this->store->select(
'SELECT displayId, xmrChannel, xmrPubKey, display FROM `display` WHERE displayId IN (' . $qmarks . ')',
'SELECT displayId, xmrChannel, xmrPubKey, display, client_type AS clientType
FROM `display`
WHERE displayId IN (' . $qmarks . ')',
$displayIdsRequiringActions
);

Expand All @@ -166,6 +168,7 @@ private function processPlayerActions()
$stdObj->xmrChannel = $display['xmrChannel'];
$stdObj->xmrPubKey = $display['xmrPubKey'];
$stdObj->display = $display['display'];
$stdObj->clientType = $display['clientType'];

try {
$this->playerActionService->sendAction($stdObj, new CollectNowAction());
Expand Down

0 comments on commit bc981a6

Please sign in to comment.