Skip to content

Commit

Permalink
Rest API background worker was not processing alternative trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Sep 15, 2021
1 parent c915206 commit a56a42a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lhc_web/lib/core/lhgenericbot/lhgenericbotworker.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ public function perform()
$argsDefault['args']['start_mode'] = true;
}

// Alternative trigger, most of the time just for logging purposes
if (isset($action['content']['rest_api_method_output']['default_trigger_alt']) && is_numeric($action['content']['rest_api_method_output']['default_trigger_alt'])) {
self::processTrigger($chat, $action['content']['rest_api_method_output']['default_trigger_alt'], $argsDefault);
}

self::processTrigger($chat, $action['content']['rest_api_method_output']['default_trigger'], $argsDefault);

if (class_exists('erLhcoreClassNodeJSRedis')) {
Expand Down

0 comments on commit a56a42a

Please sign in to comment.