Skip to content

Commit bb29bfa

Browse files
committed
fix: recap auto didn't list all the feature flag enabled rows (#40)
1 parent 5bc6c5f commit bb29bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/models/tgchats/feature_flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (m *Model) ListChatHistoriesRecapEnabledChats() ([]int64, error) {
122122
featureFlagsChats, err := m.ent.TelegramChatFeatureFlags.
123123
Query().
124124
Where(
125-
telegramchatfeatureflags.ChatType(string(telegram.ChatTypeGroup)),
125+
telegramchatfeatureflags.ChatTypeIn(string(telegram.ChatTypeGroup), string(telegram.ChatTypeSuperGroup)),
126126
telegramchatfeatureflags.FeatureChatHistoriesRecap(true),
127127
).
128128
All(context.Background())

0 commit comments

Comments
 (0)