mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
correct specs
This commit is contained in:
parent
7b558f959e
commit
b75353c26f
@ -152,9 +152,9 @@ class PostAlerter
|
|||||||
group_name: g.name.downcase,
|
group_name: g.name.downcase,
|
||||||
inbox_count: Topic.exec_sql(
|
inbox_count: Topic.exec_sql(
|
||||||
"SELECT COUNT(*) FROM topics t
|
"SELECT COUNT(*) FROM topics t
|
||||||
JOIN topic_allowed_groups g ON g.id = :group_id AND g.topic_id = t.id
|
JOIN topic_allowed_groups g ON g.group_id = :group_id AND g.topic_id = t.id
|
||||||
LEFT JOIN group_archived_messages a ON a.topic_id = t.id AND a.group_id = g.id
|
LEFT JOIN group_archived_messages a ON a.topic_id = t.id AND a.group_id = g.id
|
||||||
WHERE a.id IS NULL AND t.deleted_at is NULL AND t.archetype = 'private_message'",
|
WHERE a.id IS NULL AND t.deleted_at is NULL AND t.archetype = 'private_message'",
|
||||||
group_id: g.id).values[0][0].to_i
|
group_id: g.id).values[0][0].to_i
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -32,7 +32,7 @@ describe Admin::GroupsController do
|
|||||||
"primary_group"=>false,
|
"primary_group"=>false,
|
||||||
"grant_trust_level"=>nil,
|
"grant_trust_level"=>nil,
|
||||||
"incoming_email"=>nil,
|
"incoming_email"=>nil,
|
||||||
"notification_level"=>3,
|
"notification_level"=>2,
|
||||||
"has_messages"=>false
|
"has_messages"=>false
|
||||||
}])
|
}])
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user