Skip to content

Commit

Permalink
normal fix for Sentry error: d9e7756874cd492c969024fe8e786987
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrakovich committed Nov 24, 2023
1 parent a13dec5 commit 20b2e5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/Http/Webhooks/TelegramBotHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,13 @@ public function pickupList(): void
}

$buttons = [];
Stock::query()->with('privateChat:id,chat_id')
Stock::query()
->where('group_chat_id', $this->chat->id)
->whereNotNull('private_chat_id')
->each(function (Stock $stock) use (&$buttons) {
$buttons[] = Button::make("{$stock->name} {$stock->address}")
->action(TelegramBotActions::PICKUP_LIST->value)
->param('chat_id', $stock->privateChat?->id);
->param('chat_id', $stock->private_chat_id);
});

$this->chat->message('Выберите магазин:')
Expand Down

1 comment on commit 20b2e5d

@dmitrakovich
Copy link
Owner Author

Choose a reason for hiding this comment

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

Please sign in to comment.