mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 19:28:40 +00:00
fix #80
This commit is contained in:
parent
875ebb9eab
commit
2dc73881e9
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class ContactsDao extends DatabaseAccessor<TwonlyDatabase>
|
||||||
}
|
}
|
||||||
|
|
||||||
Stream<int?> watchContactsBlocked() {
|
Stream<int?> watchContactsBlocked() {
|
||||||
final count = contacts.blocked.count(distinct: true);
|
final count = contacts.userId.count();
|
||||||
final query = selectOnly(contacts)..where(contacts.blocked.equals(true));
|
final query = selectOnly(contacts)..where(contacts.blocked.equals(true));
|
||||||
query.addColumns([count]);
|
query.addColumns([count]);
|
||||||
return query.map((row) => row.read(count)).watchSingle();
|
return query.map((row) => row.read(count)).watchSingle();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue