*errors.errorString: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
*errors.withMessage: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
*errors.withStack: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
File "/go/src/github.com/bots-house/share-file-bot/store/postgres/download.go", line 102, in (*DownloadStore).GetChatStats
File "/go/src/github.com/bots-house/share-file-bot/service/chat.go", line 217, in (*Chat).GetChat.func2
File "/go/pkg/mod/golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208/errgroup/errgroup.go", line 57, in (*Group).Go.func1
*errors.withMessage: query chat stats: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
*errors.withStack: query chat stats: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
File "/go/src/github.com/bots-house/share-file-bot/service/chat.go", line 219, in (*Chat).GetChat.func2
File "/go/pkg/mod/golang.org/x/sync@v0.0.0-20200625203802-6e8e738ad208/errgroup/errgroup.go", line 57, in (*Group).Go.func1
*errors.withMessage: collect stats: query chat stats: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
*errors.withStack: collect stats: query chat stats: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
File "/go/src/github.com/bots-house/share-file-bot/service/chat.go", line 228, in (*Chat).GetChat
File "/go/src/github.com/bots-house/share-file-bot/bot/handler_settings_channels_and_chats.go", line 304, in (*Bot).onSettingsChannelsAndChatsDetails
File "/go/src/github.com/bots-house/share-file-bot/bot/bot.go", line 262, in (*Bot).onUpdate
File "/go/src/github.com/bots-house/share-file-bot/pkg/tg/handler.go", line 16, in HandlerFunc.HandleUpdate
File "/go/src/github.com/bots-house/share-file-bot/bot/middleware.go", line 90, in newAuthMiddleware.func1.1
...
(6 additional frame(s) were not displayed)
*errors.withMessage: Chat.GetChat: collect stats: query chat stats: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
*errors.withStack: Chat.GetChat: collect stats: query chat stats: count downloads query: sql: Scan error on column index 1, name "with_subscription": converting NULL to int is unsupported
File "/go/src/github.com/bots-house/share-file-bot/bot/handler_settings_channels_and_chats.go", line 306, in (*Bot).onSettingsChannelsAndChatsDetails
File "/go/src/github.com/bots-house/share-file-bot/bot/bot.go", line 262, in (*Bot).onUpdate
File "/go/src/github.com/bots-house/share-file-bot/pkg/tg/handler.go", line 16, in HandlerFunc.HandleUpdate
File "/go/src/github.com/bots-house/share-file-bot/bot/middleware.go", line 90, in newAuthMiddleware.func1.1
File "/go/src/github.com/bots-house/share-file-bot/pkg/tg/handler.go", line 16, in HandlerFunc.HandleUpdate
...
(5 additional frame(s) were not displayed)
Sentry Issue: SHARE-FILE-BOT-H