mass deletion of items

This commit is contained in:
marcoabat committed 2023-08-06 22:33:11 +02:00
1 parent 37704abfa1
commit af8b08c120
2 files changed
+16 -6

No files matched your search

+4
View File
@@ -144,6 +144,10 @@ class DbHelper {
await _client.from(itemsTableName).delete().eq('id', id);
}
static Future<void> deleteItemsById(List<int> ids) async {
await _client.from(itemsTableName).delete().in_('id', ids);
}
static Stream<AuthState> get authChangeEventStream =>
_client.auth.onAuthStateChange;
}