mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
correct specs
This commit is contained in:
parent
7b558f959e
commit
b75353c26f
2 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ 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
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue