some progress in goal planner again

This commit is contained in:
Kima
2023-08-29 00:24:57 +02:00
parent d524d452bd
commit 40dd967903
9 changed files with 445 additions and 26 deletions

View File

@@ -163,4 +163,11 @@ class UserDatabaseStore {
await db.update("user_data", {"goal_befores": goalBeforesJson},
where: "id = ?", whereArgs: [userId]);
}
Future<void> storeSubjectGoalPinDates(Map<String, String> dates,
{required String userId}) async {
String goalPinDatesJson = jsonEncode(dates);
await db.update("user_data", {"goal_pin_dates": goalPinDatesJson},
where: "id = ?", whereArgs: [userId]);
}
}