change title of checklist
This commit is contained in:
1 parent
69e94d323a
commit
e0b5df3de2
3 files changed
+85
-37
No files matched your search
@@ -49,6 +49,12 @@ class DbHelper {
|
||||
return checklists;
|
||||
}
|
||||
|
||||
static Future<void> updateChecklistTitle(int id, String title) async {
|
||||
await _client
|
||||
.from(checklistsTableName)
|
||||
.update({'title': title}).eq('id', id);
|
||||
}
|
||||
|
||||
/// returns id of newly created checklist
|
||||
static Future<int> addOrUpdateChecklist(Checklist? checklist) async {
|
||||
final ownerId = _client.auth.currentSession!.user.id;
|
||||
|
||||
Reference in new issue
Block a user