From bc981a6d1d91c530d55c0efc89684ad069571a65 Mon Sep 17 00:00:00 2001 From: Dan Garner Date: Fri, 27 Dec 2024 10:12:27 +0000 Subject: [PATCH] XMR: fix player action service for clientType. --- lib/Service/DisplayNotifyService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Service/DisplayNotifyService.php b/lib/Service/DisplayNotifyService.php index 2501fa33e6..77553886ef 100644 --- a/lib/Service/DisplayNotifyService.php +++ b/lib/Service/DisplayNotifyService.php @@ -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 ); @@ -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());