Update consistency.go

This commit is contained in:
RedCocoon 2024-11-07 23:54:07 +08:00
parent e38b87516f
commit 05f6e61de8

View File

@ -182,7 +182,7 @@ func init() {
checkForConversationConsistency := func(t assert.TestingT, bean any) {
conversation := reflectionWrap(bean)
typeComment := modelsCommentTypeComment
actual := GetCountByCond(t, "comment", builder.Eq{"`type`": typeComment, "conversation_id": conversation.int("ID")})
actual := GetCountByCond(t, "conversation_comment", builder.Eq{"`type`": typeComment, "conversation_id": conversation.int("ID")})
assert.EqualValues(t, conversation.int("NumComments"), actual, "Unexpected number of comments for issue id: %d", conversation.int("ID"))
}