refactor + fix добавление проекта
This commit is contained in:
@@ -9,7 +9,6 @@ import (
|
||||
"github.com/NicoNex/echotron/v3"
|
||||
"github.com/TelegramExchange/tgex-backend/tg_bot/backend"
|
||||
"github.com/TelegramExchange/tgex-backend/tg_bot/bot"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
type PlacementDetails struct {
|
||||
@@ -25,7 +24,6 @@ func (s *PlacementDetails) Enter(b *bot.Bot, mode bot.RenderMode) {
|
||||
func (s *PlacementDetails) renderDetails(b *bot.Bot, mode bot.RenderMode) {
|
||||
placement, err := b.Backend.GetPlacement(context.Background(), b.Session.JWT, b.Session.WorkspaceID, s.ProjectID, s.PlacementID)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("Failed to get placement")
|
||||
b.SendNew("❌ Не удалось загрузить размещение", Keyboard())
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user