delete checklists

This commit is contained in:
marcoabat
2023-08-06 23:55:18 +02:00
parent af8b08c120
commit 69e94d323a
2 changed files with 61 additions and 27 deletions

View File

@@ -148,6 +148,11 @@ class DbHelper {
await _client.from(itemsTableName).delete().in_('id', ids);
}
static Future<void> deleteChecklistByid(int id) async {
await _client.from(itemsTableName).delete().eq('checklist_id', id);
await _client.from(checklistsTableName).delete().eq('id', id);
}
static Stream<AuthState> get authChangeEventStream =>
_client.auth.onAuthStateChange;
}