This commit is contained in:
Lizandro Guarnizo
2026-01-24 02:02:10 -05:00
parent d5ff1f2df9
commit ab7299db2c
2 changed files with 23 additions and 1 deletions
+2 -1
View File
@@ -243,8 +243,9 @@ class ConversationStateService
* @param int $menuId
* @return bool
*/
public function setCurrentMenu(string $phoneNumber, int $menuId): bool
public function setCurrentMenu(string $phoneNumber, ?int $menuId): bool
{
// Allow null to clear current_menu_id
return $this->updateStateData($phoneNumber, ['current_menu_id' => $menuId]);
}