Fix member count including private members in system card
This commit is contained in:
parent
991c00a4e6
commit
0dd8988c08
@ -641,7 +641,7 @@ namespace PluralKit {
|
||||
public async Task<int> GetSystemMemberCount(PKSystem system, bool includePrivate)
|
||||
{
|
||||
var query = "select count(*) from members where system = @Id";
|
||||
if (includePrivate) query += " and member_privacy = 1"; // 1 = public
|
||||
if (!includePrivate) query += " and member_privacy = 1"; // 1 = public
|
||||
|
||||
using (var conn = await _conn.Obtain())
|
||||
return await conn.ExecuteScalarAsync<int>(query, system);
|
||||
|
Loading…
Reference in New Issue
Block a user