finished notes page

This commit is contained in:
Kima
2023-12-30 18:10:19 +01:00
parent f238b86dc7
commit 5476397af6
12 changed files with 561 additions and 16 deletions

View File

@@ -187,9 +187,9 @@ class UserDatabaseStore {
where: "id = ?", whereArgs: [userId]);
}
Future<void> storeSelfNotes(List<SelfNote> absences,
Future<void> storeSelfNotes(List<SelfNote> selfNotes,
{required String userId}) async {
String selfNotesJson = jsonEncode(absences.map((e) => e.json).toList());
String selfNotesJson = jsonEncode(selfNotes.map((e) => e.json).toList());
await db.update("user_data", {"self_notes": selfNotesJson},
where: "id = ?", whereArgs: [userId]);
}