Skip to content

Commit 948ef91

Browse files
committed
Update conversation_stat.go
1 parent cd41147 commit 948ef91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/conversations/conversation_stat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ func getConversationStatsChunk(ctx context.Context, opts *ConversationsOptions,
112112

113113
var err error
114114
stats.OpenCount, err = applyConversationsOptions(sess, opts, conversationIDs).
115-
And("conversation.is_closed = ?", false).
115+
And("conversation.is_locked = ?", false).
116116
Count(new(Conversation))
117117
if err != nil {
118118
return stats, err
119119
}
120120
stats.LockedCount, err = applyConversationsOptions(sess, opts, conversationIDs).
121-
And("conversation.is_closed = ?", true).
121+
And("conversation.is_locked = ?", true).
122122
Count(new(Conversation))
123123
return stats, err
124124
}

0 commit comments

Comments
 (0)